From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15276 invoked by alias); 10 Sep 2009 15:15:27 -0000 Received: (qmail 14075 invoked by uid 48); 10 Sep 2009 15:14:55 -0000 Date: Thu, 10 Sep 2009 15:15:00 -0000 Message-ID: <20090910151455.14073.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/37866] "passing argument from incompatible pointer type" warning cannot be passed to -Werror= In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg01086.txt.bz2 ------- Comment #8 from manu at gcc dot gnu dot org 2009-09-10 15:14 ------- Pedantic warnings may be controlled by individual warning flags. So to fix this you only need to: * add a new -Wfoo option to c.opt that is enabled by default. * use the option in the appropriate warning calls in c-typeck.c * create some testcases to show that it works. * get the patch reviewed and committed. Patches welcome: http://gcc.gnu.org/contribute.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37866