This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]