GNU bug report logs - #23442
[PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental)

Previous Next

Package: coreutils;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Wed, 4 May 2016 04:01:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

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: Jim Meyering <jim <at> meyering.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23442: closed ([PATCH] maint: avoid new warning from gcc
 (GCC) 7.0.0 20160503 (experimental))
Date: Thu, 05 May 2016 15:18:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 5 May 2016 08:17:18 -0700
with message-id <CA+8g5KHcR0TEBp9OR7OTokLFQ4LdmY_Z+EugkMF3_qCFYfnY1w <at> mail.gmail.com>
and subject line Re: bug#23442: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental)
has caused the debbugs.gnu.org bug report #23442,
regarding [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental)
to be marked as done.

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


-- 
23442: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23442
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: bug-coreutils <at> gnu.org
Subject: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503
 (experimental)
Date: Tue, 3 May 2016 20:59:32 -0700
[Message part 3 (text/plain, inline)]
coreutils failed to build when configured with --enable-gcc-warnings
and the latest gcc built from git.

Here's a patch to fix that:
[0001-maint-avoid-new-warning-from-gcc-GCC-7.0.0-20160503-.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: 23442-done <at> debbugs.gnu.org
Subject: Re: bug#23442: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0
 20160503 (experimental)
Date: Thu, 5 May 2016 08:17:18 -0700
On Thu, May 5, 2016 at 1:54 AM, Bernhard Voelker
<mail <at> bernhard-voelker.de> wrote:
> On 05/04/2016 05:08 PM, Jim Meyering wrote:
>> Subject: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503
>>  (experimental)
>>
>> * src/id.c (main): When configured with --enable-gcc-warnings and using
>> the very latest gcc built from git, building would fail with this:
>>   src/id.c:200:8: error: assuming signed overflow does not occur when \
>>     simplifying conditional to constant [-Werror=strict-overflow]
>>      bool default_format = (just_user + just_group + just_group_list
>>           ^~~~~~~~~~~~~~
>> Rewrite to use bool-appropriate operators.
>
> Thanks, that looks much cleaner.

Thanks again. Pushed and closed.


This bug report was last modified 9 years and 22 days ago.

Previous Next


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