From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20921 invoked by alias); 23 Jan 2007 00:05:51 -0000 Received: (qmail 20899 invoked by uid 48); 23 Jan 2007 00:05:42 -0000 Date: Tue, 23 Jan 2007 00:05:00 -0000 Message-ID: <20070123000542.20898.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/26494] -pedantic-errors can be overridden by -W* In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "truedfx at gentoo 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: 2007-01/txt/msg01888.txt.bz2 ------- Comment #3 from truedfx at gentoo dot org 2007-01-23 00:05 ------- -Wendif-labels and -Wimplicit-int don't turn errors into warnings, so probably, yes. I did notice something else of interest while testing, though: int main(char a) {} gcc bug.c -ansi -pedantic compiles this without any error or warning. gcc bug.c -ansi -pedantic -Wmain reports bug.c:1: warning: first argument of ‘main’ should be ‘int’ bug.c:1: warning: ‘main’ takes only zero or two arguments and compiles this. gcc bug.c -ansi -pedantic-errors compiles this without any error or warning. gcc bug.c -ansi -pedantic-errors -Wmain reports bug.c:1: error: first argument of ‘main’ should be ‘int’ bug.c:1: error: ‘main’ takes only zero or two arguments and does not compile this. Is that close enough to be covered by this bug report, should I report that as a new bug, or should I not report that at all? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26494