From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14389 invoked by alias); 5 Feb 2008 16:16:29 -0000 Received: (qmail 14031 invoked by alias); 5 Feb 2008 16:15:46 -0000 Date: Tue, 05 Feb 2008 16:16:00 -0000 Message-ID: <20080205161546.14028.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/33738] -Wtype-limits misses a warning when comparing enums In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dnovillo at google dot com" 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-02/txt/msg00565.txt.bz2 ------- Comment #6 from dnovillo at google dot com 2008-02-05 16:15 ------- Subject: Re: -Wtype-limits misses a warning when comparing enums On 5 Feb 2008 11:21:26 -0000, manu at gcc dot gnu dot org wrote: > You should use OPT_Wtype_limits instead of OPT_Wextra. Ah, yes, thanks. > Also, the code could simply do: Well, I explicitly wanted to separate the decision making from the warning machinery. > And BTW, what is G_ for? That's the i18n marker. I c-n-p it from other messages in the same file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33738