From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27590 invoked by alias); 10 Apr 2012 13:56:18 -0000 Received: (qmail 27576 invoked by uid 22791); 10 Apr 2012 13:56:17 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Apr 2012 13:56:03 +0000 Received: by iaag37 with SMTP id g37so7779723iaa.20 for ; Tue, 10 Apr 2012 06:56:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.202.38 with SMTP id kf6mr2442862igc.30.1334066162811; Tue, 10 Apr 2012 06:56:02 -0700 (PDT) Received: by 10.42.228.200 with HTTP; Tue, 10 Apr 2012 06:56:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Apr 2012 13:56:00 -0000 Message-ID: Subject: Re: Thousands of enum warnings building gcc From: Richard Guenther To: NightStrike Cc: Jonathan Wakely , gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg00327.txt.bz2 On Tue, Apr 10, 2012 at 3:25 PM, NightStrike wrote: > On Tue, Apr 10, 2012 at 8:38 AM, Jonathan Wakely = wrote: >> On 10 April 2012 13:11, NightStrike wrote: >>> Generally speaking, I've tried to help people get us a clean build of >>> gcc warning-wise for the windows targets. =A0This has historically been >>> challenging mainly due to printf. =A0Kai added a lot of support for >>> handling whacky windows printfs, and we were doing very well for a >>> long time. =A0Currently, however, there are two instances where giant >>> massive piles of warnings spit out due to enums not being handled in a >>> switch. =A0Is this a warning that we could just disable by default for >>> building gcc? =A0My builds are filled with this: >>> >>> >>> ../../../../build/gcc/src/gcc/ipa-pure-const.c:458: warning: >>> enumeration value `BUILT_IN_NONE' not handled in switch >> >> Did you need to paste hundreds of lines of the warning to ask the questi= on? >> >> Did you try adding -Wno-switch-enum to the build flags? > > I was asking if that could be disabled by default, so that it wouldn't > have to be manually added to the build flags each time, since the > massive warnings are intentional. I don't see them. Richard.