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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>, 20536 <at> debbugs.gnu.org
Subject: bug#20536: avoid new gcc warning: ENOTSUP vs EOPNOTSUPP
Date: Sun, 10 May 2015 07:17:15 -0700
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);





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.