[Git][NTPsec/ntpsec][master] FALLTHRU: try again, sadly gcc doc is inconsistent on the magic foo.

Gary E. Miller gitlab at mg.gitlab.com
Wed May 10 22:43:29 UTC 2017


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


Commits:
51051b51 by Gary E. Miller at 2017-05-10T15:42:42-07:00
FALLTHRU: try again, sadly gcc doc is inconsistent on the magic foo.

- - - - -


2 changed files:

- include/ntpd.h
- ntpd/ntp_loopfilter.c


Changes:

=====================================
include/ntpd.h
=====================================
--- a/include/ntpd.h
+++ b/include/ntpd.h
@@ -53,7 +53,7 @@
 #ifdef __clang__
 # define FALLTHRU
 #elif defined __GNUC__
-# define FALLTHRU [[gcc::fallthrough]]
+# define FALLTHRU /* @fallthrough@ */
 #else
 # define FALLTHRU
 #endif


=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -608,7 +608,7 @@ local_clock(
 				return (0);
 
 			clock_frequency = direct_freq(fp_offset);
-			FALLTHRU;
+			FALLTHRU
 			/* FALLTHRU to EVNT_SPIK */
 
 		/*



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/51051b514a1b56a6db64d5af9d6a1300ea148622
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/20170510/9abef788/attachment.html>


More information about the vc mailing list