From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24355 invoked by alias); 10 Nov 2006 03:40:08 -0000 Received: (qmail 24173 invoked by uid 22791); 10 Nov 2006 03:40:06 -0000 X-Spam-Check-By: sourceware.org Received: from maxwell.csl.cornell.edu (HELO maxwell.csl.cornell.edu) (128.84.224.84) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Nov 2006 03:39:58 +0000 Received: from localhost (fang@localhost) by maxwell.csl.cornell.edu (8.11.3/8.9.2) with ESMTP id kAA3dnR55038; Thu, 9 Nov 2006 22:39:49 -0500 (EST) (envelope-from fang@maxwell.csl.cornell.edu) Date: Fri, 10 Nov 2006 03:40:00 -0000 From: David Fang To: John Love-Jensen cc: Erik , MSX to GCC Subject: Re: -Werror for certain warnings? In-Reply-To: Message-ID: <20061109223520.Y54576-100000@maxwell.csl.cornell.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/msg00154.txt.bz2 > > 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. Hi, It looks like it's implemented in 4.2. [1] -Werror=blah (implies -Wblah) -Wno-error=blah (only guarantees not promoted to error) [1] http://gcc.gnu.org/bugzilla//show_bug.cgi?id=29768 I know Erik is already CC'd on that PR, but for the benefit for anyone who wanders across this thread... > HTH, > --Eljay > > * Always the possibility that I may be mistaken. Fang