Module: Mesa Branch: master Commit: 8be51061eca39a766f5304198dc6f42296232b22 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8be51061eca39a766f5304198dc6f42296232b22
Author: Krzysztof Raszkowski <krzysztof.raszkow...@intel.com> Date: Fri Aug 30 05:50:21 2019 +0000 util: Add unreachable() definition for clang compiler. Without unreachable() definition clang throw return-type error in many places in mesa code. Reviewed-by: Eric Engestrom <eric.engest...@intel.com> --- src/util/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit