common, qbsp: make Error() noreturn

This commit is contained in:
Eric Wasylishen 2021-08-26 20:22:09 -06:00
parent 9688af5be3
commit 8beda9a039
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ char archivedir[1024];
* For abnormal program terminations
* =================
*/
void
[[noreturn]] void
Error(const char *error, ...)
{
va_list argptr;

View File

@ -12,7 +12,7 @@
* thread/logging code. Error() would normally be defined in
* either common/cmdlib.h or qbsp/qbsp.h.
*/
void Error(const char *error, ...)
[[noreturn]] void Error(const char *error, ...)
__attribute__((format(printf,1,2),noreturn));
/* Make the locks no-ops if we aren't running threads */

View File

@ -81,7 +81,7 @@ char *ExpandPathAndArchive(char *path);
double I_FloatTime(void);
void Error(const char *error, ...)
[[noreturn]] void Error(const char *error, ...)
__attribute__((format(printf,1,2),noreturn));
int CheckParm(const char *check);

View File

@ -42,7 +42,7 @@ void FreeAllMem(void);
void PrintMem(void);
void Message(int MsgType, ...);
void Error(const char *error, ...)
[[noreturn]] void Error(const char *error, ...)
__attribute__((format(printf,1,2),noreturn));
int q_snprintf(char *str, size_t size, const char *format, ...);