From b530d75afbe4fecfb885d6ae84b2bf8d679712c5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 12 Jun 2019 15:35:06 -0400 Subject: [PATCH] assert: Fixed some compiler warnings. --- src/SDL_assert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SDL_assert.c b/src/SDL_assert.c index 7d6534e31..b55c5a8da 100644 --- a/src/SDL_assert.c +++ b/src/SDL_assert.c @@ -137,20 +137,20 @@ static SDL_NORETURN void SDL_ExitProcess(int exitcode) emscripten_cancel_main_loop(); /* this should "kill" the app. */ emscripten_force_exit(exitcode); /* this should "kill" the app. */ exit(exitcode); -#else -#ifdef HAVE__EXIT /* Upper case _Exit() */ +#elif defined(__HAIKU__) /* Haiku has _Exit, but it's not marked noreturn. */ + _exit(exitcode); +#elif defined(HAVE__EXIT) /* Upper case _Exit() */ _Exit(exitcode); #else _exit(exitcode); #endif -#endif } #if defined(__WATCOMC__) #pragma aux SDL_AbortAssertion aborts; #endif -static void SDL_AbortAssertion(void) +static SDL_NORETURN void SDL_AbortAssertion(void) { SDL_Quit(); SDL_ExitProcess(42);