From 19b657b9882e53863cbd80964fcea0e1213439bd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Nov 2020 10:15:16 +0100 Subject: Fix GCC return type warnings It would be nice if compilers could agree on how to deal with this. --- src/warnings.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/warnings.hpp') 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 -- cgit v1.2.1