In gcc-4.6 and above, you can use -Wno-error=cpp . At least clang released with Lion and later, you can use -Wno-error=#warnings . But since your build servers use the ancient gcc, you are probably out of luck.
In general, pass -fdiagnostics-show-option has warnings showing output, for example:
test.cc:1:2: warning: #warning hello [-Wcpp]
which tells you the warning flag that controls the warning. In gcc> = 4.6 and clang, this is the default value, so knowing what to go through may not be very useful.
Jeffrey yasskin
source share