From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21939 invoked by alias); 27 Aug 2004 15:16:34 -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 21931 invoked from network); 27 Aug 2004 15:16:33 -0000 Received: from unknown (HELO psmtp.com) (12.158.35.212) by sourceware.org with SMTP; 27 Aug 2004 15:16:33 -0000 Received: from source ([192.150.22.7]) by exprod6ob2.obsmtp.com ([12.158.35.250]) with SMTP; Fri, 27 Aug 2004 08:16:32 PDT Received: from inner-relay-1.corp.adobe.com (inner-relay-1 [153.32.1.51]) by smtp-relay-7.sea.adobe.com (8.12.10/8.12.10) with ESMTP id i7RFGVPB005472; Fri, 27 Aug 2004 08:16:31 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-1.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i7RFGUTk013197; Fri, 27 Aug 2004 08:16:31 -0700 (PDT) Received: from mn-eljay-a51m.adobe.com ([130.248.178.89]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0I3400IIO2FHQ6@iplan-mn.corp.adobe.com>; Fri, 27 Aug 2004 10:16:30 -0500 (CDT) Date: Fri, 27 Aug 2004 21:24:00 -0000 From: Eljay Love-Jensen Subject: Re: [Fwd: GCC Specific warning to error] In-reply-to: <412D8D57.7020204@ptc.com> X-Sender: eljay@iplan-mn.corp.adobe.com To: Amit Chordia , gcc-help@gcc.gnu.org Message-id: <6.1.2.0.2.20040827101514.01e3b678@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <412D8D57.7020204@ptc.com> X-SW-Source: 2004-08/txt/msg00260.txt.bz2 Hi Amit, >Is there any way where I can tell the compiler to make a particular warning to represent as error like we do it in 'cl' with the use of 'pragma' ? You can turn off all warnings, then turn on the warnings you are interested in, and then turn all warnings-into-errors. All on the command line invocation of gcc (or g++) as the compiler/linker. That's about as close as you can get, though. HTH, --Eljay