public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default
@ 2004-07-01 23:30 sebor at roguewave dot com
  2004-07-01 23:36 ` [Bug preprocessor/16323] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sebor at roguewave dot com @ 2004-07-01 23:30 UTC (permalink / raw)
  To: gcc-bugs

The gcc manual lists warning options that are not the default. Since the
-Wendif-labels option is listed, the default must be -Wno-endif-labels.
However, gcc 3.4 issues this type of a warning even with no options at
all. Either gcc or the manual must be wrong.

$ cat t.cpp && gcc --version && gcc -c t.cpp                     
#if FOO
#endif FOO

gcc (GCC) 3.4.0
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

t.cpp:2:8: warning: extra tokens at end of #endif directive

-- 
           Summary: -Wendif-labels listed even though it's on by default
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-02-14 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 23:30 [Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default sebor at roguewave dot com
2004-07-01 23:36 ` [Bug preprocessor/16323] " pinskia at gcc dot gnu dot org
2005-02-15  1:19 ` cvs-commit at gcc dot gnu dot org
2005-02-15  1:30 ` pinskia 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).