Module: Mesa Branch: master Commit: 62d5b4b03aa63582cf0801d306d7ca055cca40a0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62d5b4b03aa63582cf0801d306d7ca055cca40a0
Author: Carl Worth <[email protected]> Date: Fri Dec 5 08:05:44 2014 -0800 util: Make unreachable at least be an assert Previously, if __builtin_unreachable() was unavailable, the unreachable macro was defined to do nothing. We do better here, by at least still making it an assert. Reviewed-by: Ian Romanick <[email protected]> --- 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 5fc6729..eec8b93 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -82,7 +82,7 @@ do { \ #endif #ifndef unreachable -#define unreachable(str) +#define unreachable(str) assert(!str) #endif /** _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
