[Git][NTPsec/ntpsec][master] FALLTHRU: only gcc > 6 understands __attribute__((fallthrough))

Gary E. Miller gitlab at mg.gitlab.com
Thu May 11 17:19:11 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
ead81255 by Gary E. Miller at 2017-05-11T10:18:15-07:00
FALLTHRU: only gcc > 6 understands __attribute__((fallthrough))

- - - - -


1 changed file:

- include/ntpd.h


Changes:

=====================================
include/ntpd.h
=====================================
--- a/include/ntpd.h
+++ b/include/ntpd.h
@@ -52,7 +52,7 @@
  */
 #ifdef __clang__
 # define FALLTHRU
-#elif defined __GNUC__
+#elif defined __GNUC__ && (6 < __GNUC__ )
 # define FALLTHRU __attribute__ ((fallthrough));
 #else
 # define FALLTHRU



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ead81255a74141ce7df7d5843e198675deb7d8da

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ead81255a74141ce7df7d5843e198675deb7d8da
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170511/f4f35c1c/attachment.html>


More information about the vc mailing list