commit 28d6ba6: [Minor] Add unreachable code macro
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jun 7 16:35:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-06-07 15:13:43 +0100
URL: https://github.com/rspamd/rspamd/commit/28d6ba6f63c4033d5c13c737cd2d7bd7799859d0
[Minor] Add unreachable code macro
---
config.h.in | 6 ++++++
1 file changed, 6 insertions(+)
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
More information about the Commits
mailing list