From e92c628422463bc054256d45c8b0dd1b53f466ca Mon Sep 17 00:00:00 2001 From: Diavolo Date: Tue, 17 Jan 2023 20:37:42 +0100 Subject: [PATCH] fix warnings --- src/game/game.cpp | 2 +- src/game/game.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);