This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2004 23:30:29 -0000
- Subject: [Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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