bug-coreutils
[Top][All Lists]
Advanced

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

bug#20536: avoid new gcc warning: ENOTSUP vs EOPNOTSUPP


From: Paul Eggert
Subject: bug#20536: avoid new gcc warning: ENOTSUP vs EOPNOTSUPP
Date: Sun, 10 May 2015 07:17:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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);






reply via email to

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