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: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Jim Meyering <jim <at> meyering.net>, 23442 <at> debbugs.gnu.org
Subject: bug#23442: [PATCH] maint: avoid new warning from gcc (GCC) 7.0.0 20160503 (experimental)
Date: Wed, 4 May 2016 09:40:05 +0200
On 05/04/2016 05:59 AM, Jim Meyering wrote:
> -  bool default_format = (just_user + just_group + just_group_list
> +  bool default_format = (0U + just_user + just_group + just_group_list
>                           + just_context == 0);

These are all bool - wouldn't it be better to use boolean instead of
arithmetical operators?

Have a nice day,
Berny




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.