From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30731 invoked by alias); 1 Jul 2004 23:30:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30724 invoked by uid 48); 1 Jul 2004 23:30:29 -0000 Date: Thu, 01 Jul 2004 23:30:00 -0000 From: "sebor at roguewave dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040701233026.16323.sebor@roguewave.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug preprocessor/16323] New: -Wendif-labels listed even though it's on by default X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg00109.txt.bz2 List-Id: 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