[EMAIL PROTECTED]:~$ cat foo.c #if FOO #endif int main (void) { return 42; } [EMAIL PROTECTED]:~$ gcc -o foo foo.c -Wundef -Werror -Wno-error=undef foo.c:1:5: error: "FOO" is not defined [EMAIL PROTECTED]:~$
I'd expect that this would only result in a warning. All other warning parameter I've tried works as expected. -- Summary: -Wundef -Werror -Wno-error=undef result in error, not warning Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: simon at josefsson dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38105