[Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default
sebor at roguewave dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 1 23:30:00 GMT 2004
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
More information about the Gcc-bugs
mailing list