GNU bug report logs - #20536
avoid new gcc warning: ENOTSUP vs EOPNOTSUPP

Previous Next

Package: coreutils;

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

Date: Sat, 9 May 2015 18:16:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 20536 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 20536 <at> debbugs.gnu.org
Subject: Re: bug#20536: avoid new gcc warning: ENOTSUP vs EOPNOTSUPP
Date: Sun, 10 May 2015 08:34:51 -0700
On Sun, May 10, 2015 at 7:17 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> Jim Meyering wrote:
>>
>> +  return err == EOPNOTSUPP
>> +#if ENOTSUP != EOPNOTSUPP
>> +    || err == ENOTSUP
>> +#endif
>> +    ;
>
> Would the following work instead?  It's a bit cleaner to avoid #if:
>
>   return err == EOPNOTSUPP || (ENOTSUP != EOPNOTSUPP && err == ENOTSUP);

I confirmed that too avoids the warning, so I've pushed it in your name.




This bug report was last modified 10 years and 18 days ago.

Previous Next


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