Fix c++ compiler warnings
An awk script was used to generate the changes. Hand editing was also
required:
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }
function trim(s) { return rtrim(ltrim(s)); }
BEGIN {
}
/invalid conversion from ‘gpointer’/ {
split($0, file, ":"); # file-name line-number
split($0, fields, "[‘’]"); # get the typecast - these two characters are
UTF8 and are NOT the same
split(fields[6], cast, "*")
getline;
split($0, code, "[|=;]");
print "sed -i '" file[2]"s/"code[3]"/ static_cast<" cast[1] " *>("
trim(code[3]) ")/' " "./src/"file[1] ;
84 files changed: