mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
annotate no return
Clang: function could be declared with attribute 'noreturn' [-Wmissing-noreturn]
This commit is contained in:
committed by
Özkan Sezer
parent
144ab4ba99
commit
8b53b77058
+1
-1
@@ -50,7 +50,7 @@ cleanup(void)
|
|||||||
unlink(FBASENAME2);
|
unlink(FBASENAME2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static SDL_NORETURN void
|
||||||
iostrm_error_quit(unsigned line, SDL_IOStream *iostrm)
|
iostrm_error_quit(unsigned line, SDL_IOStream *iostrm)
|
||||||
{
|
{
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "testfile.c(%d): failed", line);
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "testfile.c(%d): failed", line);
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ static void shutdownGPU(void)
|
|||||||
|
|
||||||
|
|
||||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||||
static void
|
static SDL_NORETURN void
|
||||||
quit(int rc)
|
quit(int rc)
|
||||||
{
|
{
|
||||||
shutdownGPU();
|
shutdownGPU();
|
||||||
|
|||||||
+1
-1
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
|
|||||||
/**
|
/**
|
||||||
* Cleans up a bit.
|
* Cleans up a bit.
|
||||||
*/
|
*/
|
||||||
static void
|
static SDL_NORETURN void
|
||||||
abort_execution(void)
|
abort_execution(void)
|
||||||
{
|
{
|
||||||
SDL_Log("%s", "");
|
SDL_Log("%s", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user