diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-07 15:13:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-07 17:30:09 +0100 |
commit | 28d6ba6f63c4033d5c13c737cd2d7bd7799859d0 (patch) | |
tree | 51c8f76ee2e310a20a3a6e6c43a72dfa398c5851 /config.h.in | |
parent | 92f5857eb807306bd7b1536d9901169bf3e5949b (diff) | |
download | rspamd-28d6ba6f63c4033d5c13c737cd2d7bd7799859d0.tar.gz rspamd-28d6ba6f63c4033d5c13c737cd2d7bd7799859d0.zip |
[Minor] Add unreachable code macro
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index c52506f8e..74f694f88 100644 --- a/config.h.in +++ b/config.h.in @@ -444,6 +444,12 @@ extern uint64_t ottery_rand_uint64(void); #define RSPAMD_CONST_FUNCTION #endif +#ifdef __GNUC__ +#define RSPAMD_UNREACHABLE __builtin_unreachable() +#else +#define RSPAMD_UNREACHABLE abort() +#endif + #define HAVE_OPENSSL 1 #define HAVE_MATH_H 1 |