GNU bug report logs - #8732
uinttostr: comparison of unsigned expression < 0 is always false

Previous Next

Package: coreutils;

Reported by: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>

Date: Wed, 25 May 2011 18:20:02 UTC

Severity: normal

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#8732: closed (uinttostr: comparison of unsigned expression <
 0 is always false)
Date: Wed, 25 May 2011 21:30:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 25 May 2011 15:29:12 -0600
with message-id <4DDD74A8.8000106 <at> redhat.com>
and subject line Re: bug#8732: uinttostr: comparison of unsigned expression < 0 is always	false
has caused the GNU bug report #8732,
regarding uinttostr: comparison of unsigned expression < 0 is always false
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
8732: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8732
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: uinttostr: comparison of unsigned expression < 0 is always false
Date: Wed, 25 May 2011 09:23:50 +0200
Hi *,

building coreutils-8.12 with '--enable-gcc-warnings' fails on my SLES 10.3 server:

  CC       uinttostr.o
cc1: warnings being treated as errors
In file included from uinttostr.c:3:
anytostr.c: In function 'uinttostr':
anytostr.c:39: warning: comparison of unsigned expression < 0 is always false

gcc --version
gcc (GCC) 4.1.2 20070115 (SUSE Linux)

Have a nice day,
Berny

[Message part 3 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
Cc: 8732-done <at> debbugs.gnu.org, "Voelker,
	Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
Subject: Re: bug#8732: uinttostr: comparison of unsigned expression < 0 is
	always	false
Date: Wed, 25 May 2011 15:29:12 -0600
[Message part 4 (text/plain, inline)]
tag 8732 wontfix
close 8732
done


On 05/25/2011 01:54 PM, Eric Blake wrote:
> On 05/25/2011 01:23 AM, Voelker, Bernhard wrote:
>> Hi *,
>>
>> building coreutils-8.12 with '--enable-gcc-warnings' fails on my SLES 10.3 server:
>>
>>   CC       uinttostr.o
>> cc1: warnings being treated as errors
>> In file included from uinttostr.c:3:
>> anytostr.c: In function 'uinttostr':
>> anytostr.c:39: warning: comparison of unsigned expression < 0 is always false
> 
> the warning is spurious.  But we don't know how
> to shut up gcc.

You're not the first to hit this, either:

http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00435.html

Since our party line back then was to "upgrade gcc or quit using -Werror
with old gcc", I'm marking this as a wontfix; but if you can come up
with a patch, we can reopen it.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 14 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.