assert: Fixed some compiler warnings.

Ryan C. Gordon 2019-06-12 15:35:06 -04:00
parent 747df96eb0
commit b530d75afb
1 changed files with 4 additions and 4 deletions

View File

@ -137,20 +137,20 @@ static SDL_NORETURN void SDL_ExitProcess(int exitcode)
emscripten_cancel_main_loop(); /* this should "kill" the app. */ emscripten_cancel_main_loop(); /* this should "kill" the app. */
emscripten_force_exit(exitcode); /* this should "kill" the app. */ emscripten_force_exit(exitcode); /* this should "kill" the app. */
exit(exitcode); exit(exitcode);
#else #elif defined(__HAIKU__) /* Haiku has _Exit, but it's not marked noreturn. */
#ifdef HAVE__EXIT /* Upper case _Exit() */ _exit(exitcode);
#elif defined(HAVE__EXIT) /* Upper case _Exit() */
_Exit(exitcode); _Exit(exitcode);
#else #else
_exit(exitcode); _exit(exitcode);
#endif #endif
#endif
} }
#if defined(__WATCOMC__) #if defined(__WATCOMC__)
#pragma aux SDL_AbortAssertion aborts; #pragma aux SDL_AbortAssertion aborts;
#endif #endif
static void SDL_AbortAssertion(void) static SDL_NORETURN void SDL_AbortAssertion(void)
{ {
SDL_Quit(); SDL_Quit();
SDL_ExitProcess(42); SDL_ExitProcess(42);