Make non-Clang compilers happy.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 07 Feb 2014 11:55:13 -0500
changeset 8190e63a3fe7e835
parent 8189 ab1045579b92
child 8191 b50f4ae6d5f2
Make non-Clang compilers happy.
include/SDL_assert.h
     1.1 --- a/include/SDL_assert.h	Fri Feb 07 11:52:35 2014 -0500
     1.2 +++ b/include/SDL_assert.h	Fri Feb 07 11:55:13 2014 -0500
     1.3 @@ -121,12 +121,14 @@
     1.4  extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
     1.5                                                               const char *,
     1.6                                                               const char *, int)
     1.7 -#if defined(__clang__) && __has_feature(attribute_analyzer_noreturn)
     1.8 +#if defined(__clang__)
     1.9 +#if __has_feature(attribute_analyzer_noreturn)
    1.10  /* this tells Clang's static analysis that we're a custom assert function,
    1.11     and that the analyzer should assume the condition was always true past this
    1.12     SDL_assert test. */
    1.13     __attribute__((analyzer_noreturn))
    1.14  #endif
    1.15 +#endif
    1.16  ;
    1.17  
    1.18  /* the do {} while(0) avoids dangling else problems: