diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-05-06 16:47:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-05-06 16:47:03 -0400 |
commit | fecc5fd38d80093a9c189eece4acd41c35cd36c6 (patch) | |
tree | c741b52c2b172e0ff3eeb8f12bc4dd6bba02a396 /src/lib/cc/compat_compiler.h | |
parent | e61867416ec23b996de4c6a8c1c6875db549faf2 (diff) | |
parent | d04b708b4bd47ee8df6796f19b25f558b2b18e91 (diff) | |
download | tor-fecc5fd38d80093a9c189eece4acd41c35cd36c6.tar.gz tor-fecc5fd38d80093a9c189eece4acd41c35cd36c6.zip |
Merge branch 'maint-0.4.2' into maint-0.4.3
Diffstat (limited to 'src/lib/cc/compat_compiler.h')
-rw-r--r-- | src/lib/cc/compat_compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/cc/compat_compiler.h b/src/lib/cc/compat_compiler.h index 1bb8c54a0c..015b5af320 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__) |