This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38105] New: -Wundef -Werror -Wno-error=undef result in error, not warning
- From: "simon at josefsson dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2008 20:07:04 -0000
- Subject: [Bug c/38105] New: -Wundef -Werror -Wno-error=undef result in error, not warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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