bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23442: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 2016050


From: Bernhard Voelker
Subject: bug#23442: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental)
Date: Thu, 5 May 2016 10:54:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

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.

Have a nice day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]