diff --git a/src/util/macros.h b/src/util/macros.h index f5f099bb594..55dd80c870b 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -72,7 +72,7 @@ * Unreachable macro. Useful for suppressing "control reaches end of non-void * function" warnings. */ -#ifdef HAVE___BUILTIN_UNREACHABLE +#if defined(HAVE___BUILTIN_UNREACHABLE) || __has_builtin(__builtin_unreachable) #define unreachable(str) \ do { \ assert(!str); \