From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12470 invoked by alias); 7 Aug 2009 13:07:27 -0000 Received: (qmail 12395 invoked by uid 48); 7 Aug 2009 13:07:11 -0000 Date: Fri, 07 Aug 2009 13:07:00 -0000 Message-ID: <20090807130711.12394.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/40989] -Werror= and #pragma diagnostics do not work with group flags 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-08/txt/msg00734.txt.bz2 ------- Comment #2 from manu at gcc dot gnu dot org 2009-08-07 13:07 ------- This is because neither Werror= nor #pragma GCC diagnositcs work with "group flags", that is, flags that enable other flags. Until this is fixed, you need to give exactly the flag reported by -fdiagnostics-show-option, so in your case it would be: -Werror=implicit-function-declaration if none is reported that is also a bug, so open another PR. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-08-07 13:07:11 date| | Summary|-Werror=implicit does not |-Werror= and #pragma |enable -Wimplicit |diagnostics do not work with | |group flags http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40989