From ba55cbef6e83bc887de94d16fd9f8821e61f34a4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 7 Feb 2014 11:55:13 -0500 Subject: [PATCH] Make non-Clang compilers happy. --- include/SDL_assert.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index 57a4f86472b31..42348f7d13578 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -121,12 +121,14 @@ typedef struct SDL_assert_data extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *, const char *, const char *, int) -#if defined(__clang__) && __has_feature(attribute_analyzer_noreturn) +#if defined(__clang__) +#if __has_feature(attribute_analyzer_noreturn) /* this tells Clang's static analysis that we're a custom assert function, and that the analyzer should assume the condition was always true past this SDL_assert test. */ __attribute__((analyzer_noreturn)) #endif +#endif ; /* the do {} while(0) avoids dangling else problems: