assert: Fixed some compiler warnings.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 12 Jun 2019 15:35:06 -0400
changeset 128495cd9ce1d28f2
parent 12848 a9a7c1e48f0b
child 12850 f20a317cc8ad
assert: Fixed some compiler warnings.
src/SDL_assert.c
     1.1 --- a/src/SDL_assert.c	Wed Jun 12 10:38:49 2019 -0700
     1.2 +++ b/src/SDL_assert.c	Wed Jun 12 15:35:06 2019 -0400
     1.3 @@ -137,20 +137,20 @@
     1.4      emscripten_cancel_main_loop();  /* this should "kill" the app. */
     1.5      emscripten_force_exit(exitcode);  /* this should "kill" the app. */
     1.6      exit(exitcode);
     1.7 -#else
     1.8 -#ifdef HAVE__EXIT /* Upper case _Exit() */
     1.9 +#elif defined(__HAIKU__)  /* Haiku has _Exit, but it's not marked noreturn. */
    1.10 +    _exit(exitcode);
    1.11 +#elif defined(HAVE__EXIT) /* Upper case _Exit() */
    1.12      _Exit(exitcode);
    1.13  #else
    1.14      _exit(exitcode);
    1.15  #endif
    1.16 -#endif
    1.17  }
    1.18  
    1.19  
    1.20  #if defined(__WATCOMC__)
    1.21  #pragma aux SDL_AbortAssertion aborts;
    1.22  #endif
    1.23 -static void SDL_AbortAssertion(void)
    1.24 +static SDL_NORETURN void SDL_AbortAssertion(void)
    1.25  {
    1.26      SDL_Quit();
    1.27      SDL_ExitProcess(42);