-Werror=declaration-after-statement and -Werror=pointer-arith only generate warnings not errors. Example ----- void *a;
void *test(){ if(a=a) a++; int x=5; return a+x; } ---- gcc-4.3 -Werror=declaration-after-statement -Werror=pointer-arith testX.c -c -o testX ---- adding -Werror=parentheses generates an error as expected though also interrestingly -fdiagnostics-show-option shows only [-Wparentheses] and nothing for the other 2 warnings Note, this issue has been seen on x86-32 and ppc -- Summary: -Werror= works only with some warnings Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: michaelni at gmx dot at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35058