From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5007 invoked by alias); 1 Jul 2010 21:54:08 -0000 Received: (qmail 4953 invoked by uid 48); 1 Jul 2010 21:53:57 -0000 Date: Thu, 01 Jul 2010 21:54:00 -0000 Message-ID: <20100701215357.4952.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/44774] -Werror=edantic 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: 2010-07/txt/msg00136.txt.bz2 ------- Comment #2 from manu at gcc dot gnu dot org 2010-07-01 21:53 ------- manuel@gcc11:~$ ~/test2/161617M/build/gcc/cc1 empty2.c -pedantic-errors empty2.c:1:1: error: struct has no members [-pedantic] empty2.c:2:1: error: unnamed struct/union that defines no instances manuel@gcc11:~$ ~/test2/161617M/build/gcc/cc1 empty2.c -pedantic -Werror empty2.c:1:1: error: struct has no members [-Werror=edantic] empty2.c:2:1: error: unnamed struct/union that defines no instances [-Werror] We also should add a -Wpedantic-default (or -Wpedantic-required) for pedwarns enabled by default (not by -pedantic). OK? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44774