From 62d5b4b03aa63582cf0801d306d7ca055cca40a0 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 5 Dec 2014 08:05:44 -0800 Subject: 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 --- src/util/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/macros.h b/src/util/macros.h index 5fc6729536c..eec8b9352cc 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 /** -- cgit v1.2.3