Make non-Clang compilers happy.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 07 Feb 2014 11:55:13 -0500
changeset 8190 e63a3fe7e835
parent 8189 ab1045579b92
child 8191 b50f4ae6d5f2
Make non-Clang compilers happy.
include/SDL_assert.h
--- a/include/SDL_assert.h	Fri Feb 07 11:52:35 2014 -0500
+++ b/include/SDL_assert.h	Fri Feb 07 11:55:13 2014 -0500
@@ -121,12 +121,14 @@
 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: