aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-17 16:21:07 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-17 16:21:07 +0200
commit7e6ade6682c26d7ed40eaa22ae152686d44982d0 (patch)
treef7ba34b0f1c130ea3c87f94cb4b9b3ed91bdcd37 /src/common.h
parent49b8874884185606319de5c44bc90c5e78d9f48f (diff)
Begin work on the static analyzer
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index be88f0b..5756c83 100644
--- a/src/common.h
+++ b/src/common.h
@@ -6,8 +6,9 @@
# define unlikely(x) __builtin_expect(!!(x), 0)
#else
# define __attribute__(x)
-# define likely(x) (x)
-# define unlikely(x) (x)
+# define __builtin_unreachable() (((char *)0)[0] = 0)
+# define likely(x) (x)
+# define unlikely(x) (x)
#endif
#endif /* !ORYX_COMMON_H */