From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27164 invoked by alias); 29 Dec 2006 12:15:15 -0000 Received: (qmail 27155 invoked by uid 22791); 29 Dec 2006 12:15:14 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Dec 2006 12:15:08 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-201-212.inter.net.il [80.230.201.212]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FPA76977 (AUTH halo1); Fri, 29 Dec 2006 14:15:02 +0200 (IST) Date: Fri, 29 Dec 2006 12:15:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org In-reply-to: <20061228230925.GA23775@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 28 Dec 2006 18:09:26 -0500) Subject: Re: RFC: Warning fixes Reply-to: Eli Zaretskii References: <20061228195828.GA18628@nevyn.them.org> <200612282256.kBSMu65R022410@brahms.sibelius.xs4all.nl> <20061228230925.GA23775@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00345.txt.bz2 > Date: Thu, 28 Dec 2006 18:09:26 -0500 > From: Daniel Jacobowitz > Cc: gdb-patches@sourceware.org > > The warning is a bit annoying, though. We can't portably tell whether > the type of sig will be signed or unsigned. Perhaps we should force > sig to be an int before bounds checking, instead, and I should file a > GCC bug report. How's that sound to you? A GCC bug report is in order, I agree: the compiler shouldn't punish the programmer for its choice of data type.