public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38105]  New: -Wundef -Werror -Wno-error=undef result in error, not warning
@ 2008-11-13 20:08 simon at josefsson dot org
  2008-11-13 20:11 ` [Bug preprocessor/38105] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: simon at josefsson dot org @ 2008-11-13 20:08 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-21 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 20:08 [Bug c/38105] New: -Wundef -Werror -Wno-error=undef result in error, not warning simon at josefsson dot org
2008-11-13 20:11 ` [Bug preprocessor/38105] " pinskia at gcc dot gnu dot org
2008-11-13 21:17 ` simon at josefsson dot org
2009-01-02 16:42 ` tromey at gcc dot gnu dot org
2009-03-29 23:04 ` jsm28 at gcc dot gnu dot org
2010-06-21 23:17 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).