summaryrefslogtreecommitdiffstats
path: root/src/warnings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/warnings.hpp')
-rw-r--r--src/warnings.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/warnings.hpp b/src/warnings.hpp
index 31cdf42..6931bee 100644
--- a/src/warnings.hpp
+++ b/src/warnings.hpp
@@ -54,4 +54,10 @@
#endif
+#if defined(__GNUC__)
+# define PATCHAGE_UNREACHABLE() __builtin_unreachable()
+#else
+# define PATCHAGE_UNREACHABLE()
+#endif
+
#endif // PATCHAGE_WARNINGS_HPP