I tried to build with Clang and --enable-werror to see if that finds any bugs. Attached are results so far; there is still quite some to compile and Clang also consistently crashes on a file. All this is with self compiled Clang from trunk revision 152134 from 6 March 2012. Only patch 6 solves a real bug, but in CLucene not LO. I sent the same patch upstream but got no response so far. There are quite some more "implicit conversion changes signedness" warnings left in connectivity, is it ok to do larger changes like patches 8 and 9 do (switch method arguments or class members from signed to unsigned if that makes sense for example) or should I just silence the warnings with casts? Thanks, Catalin
Attachment:
0001-WaE-Clang-empty-forloop-body.patch
Description: Binary data
Attachment:
0002-WaE-Clang-unused-variable.patch
Description: Binary data
Attachment:
0003-WaE-Clang-unused-variable.patch
Description: Binary data
Attachment:
0004-WaE-Clang-adding-int-to-a-string-does-not-append-to-.patch
Description: Binary data
Attachment:
0005-WaE-Clang-C-linkage-warning.patch
Description: Binary data
Attachment:
0006-WaE-patch-CLucene-to-avoid-Clang-unused-parameter-wa.patch
Description: Binary data
Attachment:
0007-WaE-Clang-expression-result-unused.patch
Description: Binary data
Attachment:
0008-WaE-Clang-implicit-conversion-changes-signedness.patch
Description: Binary data
Attachment:
0009-WaE-Clang-implicit-conversion-changes-signedness.patch
Description: Binary data