From 2e376791927e6e061c0c044056cff6c1f768b100 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 1 Jan 2021 21:00:41 +0100 Subject: Use __builtin_unreachable() with clang Clang apparently pretends to be GCC 4.2. --- src/sord_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sord_internal.h b/src/sord_internal.h index 0b74bcd..c33dace 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -22,7 +22,7 @@ #include -#if defined(__GNUC__) && __GNUC__ > 4 +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 4) # define SORD_UNREACHABLE() __builtin_unreachable() #else # include -- cgit v1.2.1