Skip to content

Commit

Permalink
assert: Fixed some compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 12, 2019
1 parent 747df96 commit b530d75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SDL_assert.c
Expand Up @@ -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);
Expand Down

0 comments on commit b530d75

Please sign in to comment.