--- Begin Message ---
Subject: |
[PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental) |
Date: |
Tue, 3 May 2016 20:59:32 -0700 |
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
Description: Text Data
--- End Message ---
--- Begin Message ---
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
<address@hidden> 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.
--- End Message ---