From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18123 invoked by alias); 11 Dec 2001 13:40:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18027 invoked from network); 11 Dec 2001 13:39:56 -0000 Received: from unknown (HELO anchor-post-31.mail.demon.net) (194.217.242.89) by sources.redhat.com with SMTP; 11 Dec 2001 13:39:56 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 16Dn8U-000NNs-0V; Tue, 11 Dec 2001 13:39:54 +0000 From: "Rupert Wood" To: "'Phil Prentice'" Cc: Subject: RE: GNU warnings Date: Tue, 11 Dec 2001 05:40:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D11FDC3@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2001-12/txt/msg00070.txt.bz2 Phil Prentice wrote: > I am using the GNU compiler to compile some generated source. > Unfortunatly the generated source includes a file of the form:- > > void TEST_PROGRAM (void) > { > > > which of course gives me the warning:- > > warning: This file contains more '{'s than '}'s. > > I would like to inhibit this warning from being output, but leave > other warnings enabled. No, this warning cannot be disabled in 2.95.x at least without editing the source. This is really an enforcement of style so you're right: it ought to be flaggable. Incidentally, GCC 3+ will not generate this warning (which could be a bad thing depending how you look at it). Rup.