From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12409 invoked by alias); 6 Jan 2008 22:15:25 -0000 Received: (qmail 11761 invoked by uid 48); 6 Jan 2008 22:14:43 -0000 Date: Sun, 06 Jan 2008 22:31:00 -0000 Subject: [Bug preprocessor/34695] New: Preprocessor warning->error conversion from -Werror is silent X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ed at catmur dot co dot uk" 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: 2008-01/txt/msg00558.txt.bz2 When -Werror is passed in, libcpp silently converts warnings to errors: $ gcc foo.c -Wall -Werror foo.c:3:1: error: "FOO" redefined foo.c:2:1: error: this is the location of the previous definition This is potentially confusing, and inconsistent with cc, which displays: $ gcc foo.c -Wall -Werror cc1: warnings being treated as errors foo.c:1: warning: return type defaults to ‘int’ foo.c: In function ‘main’: foo.c:1: warning: control reaches end of non-void function -- Summary: Preprocessor warning->error conversion from -Werror is silent Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ed at catmur dot co dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34695