mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Make non-Clang compilers happy.
This commit is contained in:
parent
129456fe2e
commit
ba55cbef6e
@ -121,12 +121,14 @@ typedef struct SDL_assert_data
|
|||||||
extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
|
extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
|
||||||
const char *,
|
const char *,
|
||||||
const char *, int)
|
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,
|
/* 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
|
and that the analyzer should assume the condition was always true past this
|
||||||
SDL_assert test. */
|
SDL_assert test. */
|
||||||
__attribute__((analyzer_noreturn))
|
__attribute__((analyzer_noreturn))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
/* the do {} while(0) avoids dangling else problems:
|
/* the do {} while(0) avoids dangling else problems:
|
||||||
|
Loading…
Reference in New Issue
Block a user