Fixed bug 1646 - Warnings from clang with -Weverything
This commit is contained in:
1 parent
0d24495b15
commit
818d1d3e80
7 files changed
+30
-7
No files matched your search
+4
-2
@@ -111,7 +111,8 @@ static void SDL_GenerateAssertionReport(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void SDL_ExitProcess(int exitcode)
|
||||
|
||||
static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
ExitProcess(exitcode);
|
||||
@@ -120,7 +121,8 @@ static void SDL_ExitProcess(int exitcode)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void SDL_AbortAssertion(void)
|
||||
|
||||
static SDL_NORETURN void SDL_AbortAssertion(void)
|
||||
{
|
||||
SDL_Quit();
|
||||
SDL_ExitProcess(42);
|
||||
|
||||
Reference in new issue
Block a user