From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32697 invoked by alias); 8 Nov 2006 12:34:38 -0000 Received: (qmail 32680 invoked by uid 22791); 8 Nov 2006 12:34:36 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og54.obsmtp.com (HELO exprod6og54.obsmtp.com) (64.18.1.189) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 08 Nov 2006 12:34:18 +0000 Received: from source ([192.150.20.142]) by exprod6ob54.postini.com ([64.18.5.12]) with SMTP; Wed, 08 Nov 2006 04:33:21 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kA8CXbIY000649; Wed, 8 Nov 2006 04:33:38 -0800 (PST) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kA8CXEPF024220; Wed, 8 Nov 2006 04:33:14 -0800 (PST) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Nov 2006 04:33:13 -0800 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Wed, 8 Nov 2006 12:33:13 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Wed, 08 Nov 2006 12:34:00 -0000 Subject: Re: -Werror for certain warnings? From: John Love-Jensen To: Erik , MSX to GCC Message-ID: In-Reply-To: <455156B4.5090607@home.se> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2006-11/txt/msg00135.txt.bz2 Hi Erik, > How is [treating specific warnings as errors] supposed to be done? Enable just the warnings you want to be treated as errors and use the -Werror switch. I do not believe* there is the ability to promote specific warnings (other than -Werror-implicit-function-declaration) to be treated as errors. That would be a nice enhancement to GCC. HTH, --Eljay * Always the possibility that I may be mistaken.