aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-05-06 16:47:03 -0400
committerNick Mathewson <nickm@torproject.org>2020-05-06 16:47:03 -0400
commit82effefb69defc757ed2f576d40badbd8460f757 (patch)
tree667235b03238dd6074d8a7836b71a1a06803a63c /src/lib/cc
parent42dfcd0ae3f7a872a781452c289b4e47c494d122 (diff)
parentfecc5fd38d80093a9c189eece4acd41c35cd36c6 (diff)
downloadtor-82effefb69defc757ed2f576d40badbd8460f757.tar.gz
tor-82effefb69defc757ed2f576d40badbd8460f757.zip
Merge branch 'maint-0.4.3'
Diffstat (limited to 'src/lib/cc')
-rw-r--r--src/lib/cc/compat_compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/cc/compat_compiler.h b/src/lib/cc/compat_compiler.h
index e4b0ea61ca..96aa912652 100644
--- a/src/lib/cc/compat_compiler.h
+++ b/src/lib/cc/compat_compiler.h
@@ -50,6 +50,12 @@
#define CHECK_SCANF(formatIdx, firstArg)
#endif /* defined(__GNUC__) */
+#if defined(HAVE_ATTR_FALLTHROUGH)
+#define FALLTHROUGH __attribute__((fallthrough))
+#else
+#define FALLTHROUGH
+#endif
+
/* What GCC do we have? */
#ifdef __GNUC__
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)