This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/38105] New: -Wundef -Werror -Wno-error=undef result in error, not warning


jas@mocca:~$ cat foo.c
#if FOO
#endif
int main (void) { return 42; }
jas@mocca:~$ gcc -o foo foo.c -Wundef -Werror -Wno-error=undef
foo.c:1:5: error: "FOO" is not defined
jas@mocca:~$ 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]