]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect-stdinc.h
Check for __attribute__ ((fallthrough)) (GCC 7).
[tcpdump] / netdissect-stdinc.h
index c7070f0a04c25453fc7aba7e50da66c4d1aa1401..fb385fb9c5cd01cdabd88169552bab2388c936eb 100644 (file)
@@ -401,4 +401,10 @@ struct in6_addr {
 #define max(a,b) ((b)>(a)?(b):(a))
 #endif
 
+#ifdef __ATTRIBUTE___FALLTHROUGH_OK
+#  define ND_FALL_THROUGH __attribute__ ((fallthrough))
+#else
+#  define ND_FALL_THROUGH
+#endif /* __ATTRIBUTE___FALLTHROUGH_OK */
+
 #endif /* netdissect_stdinc_h */