diff --git a/src/game/game.cpp b/src/game/game.cpp index b9e58a9..91a333a 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -553,7 +553,7 @@ namespace game InterlockedDecrement(&critSect->readCount); } - void Sys_OutOfMemErrorInternal(const char* filename, int line) + [[noreturn]] void Sys_OutOfMemErrorInternal(const char* filename, int line) { Sys_EnterCriticalSection(CRITSECT_FATAL_ERROR); diff --git a/src/game/game.hpp b/src/game/game.hpp index 4eccf19..d2fbb04 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -393,7 +393,7 @@ namespace game bool Sys_IsServerThread(); void Sys_LockRead(FastCriticalSection* critSect); void Sys_UnlockRead(FastCriticalSection* critSect); - void Sys_OutOfMemErrorInternal(const char* filename, int line); + [[noreturn]] void Sys_OutOfMemErrorInternal(const char* filename, int line); bool FS_Initialized(); int FS_FOpenFileReadForThread(const char* filename, int* file, FsThread thread);