public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/34695]  New: Preprocessor warning->error conversion from -Werror is silent
@ 2008-01-06 22:31 ed at catmur dot co dot uk
  2008-01-06 23:19 ` [Bug preprocessor/34695] " ed at catmur dot co dot uk
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ed at catmur dot co dot uk @ 2008-01-06 22:31 UTC (permalink / raw)
  To: gcc-bugs

When -Werror is passed in, libcpp silently converts warnings to errors:
$ gcc foo.c -Wall -Werror
foo.c:3:1: error: "FOO" redefined
foo.c:2:1: error: this is the location of the previous definition

This is potentially confusing, and inconsistent with cc, which displays:
$ gcc foo.c -Wall -Werror
cc1: warnings being treated as errors
foo.c:1: warning: return type defaults to ‘int’
foo.c: In function ‘main’:
foo.c:1: warning: control reaches end of non-void function


-- 
           Summary: Preprocessor warning->error conversion from -Werror is
                    silent
           Product: gcc
           Version: 4.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ed at catmur dot co dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34695


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

end of thread, other threads:[~2009-03-29 22:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-06 22:31 [Bug preprocessor/34695] New: Preprocessor warning->error conversion from -Werror is silent ed at catmur dot co dot uk
2008-01-06 23:19 ` [Bug preprocessor/34695] " ed at catmur dot co dot uk
2008-01-07 20:56 ` tromey at gcc dot gnu dot org
2008-01-20 10:00 ` ed at catmur dot co dot uk
2008-01-20 22:31 ` ed at catmur dot co dot uk
2008-01-20 23:16 ` ed at catmur dot co dot uk
2008-01-22  2:45 ` ed at catmur dot co dot uk
2008-01-22  2:47 ` ed at catmur dot co dot uk
2008-01-22  6:07 ` manu at gcc dot gnu dot org
2009-02-11  1:14 ` jsm28 at gcc dot gnu dot org
2009-03-29 22:56 ` jsm28 at gcc dot gnu dot org
2009-03-29 22:59 ` 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).