common, qbsp: make Error() noreturn
This commit is contained in:
parent
9688af5be3
commit
8beda9a039
|
|
@ -57,7 +57,7 @@ char archivedir[1024];
|
||||||
* For abnormal program terminations
|
* For abnormal program terminations
|
||||||
* =================
|
* =================
|
||||||
*/
|
*/
|
||||||
void
|
[[noreturn]] void
|
||||||
Error(const char *error, ...)
|
Error(const char *error, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
* thread/logging code. Error() would normally be defined in
|
* thread/logging code. Error() would normally be defined in
|
||||||
* either common/cmdlib.h or qbsp/qbsp.h.
|
* 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));
|
__attribute__((format(printf,1,2),noreturn));
|
||||||
|
|
||||||
/* Make the locks no-ops if we aren't running threads */
|
/* Make the locks no-ops if we aren't running threads */
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ char *ExpandPathAndArchive(char *path);
|
||||||
|
|
||||||
double I_FloatTime(void);
|
double I_FloatTime(void);
|
||||||
|
|
||||||
void Error(const char *error, ...)
|
[[noreturn]] void Error(const char *error, ...)
|
||||||
__attribute__((format(printf,1,2),noreturn));
|
__attribute__((format(printf,1,2),noreturn));
|
||||||
int CheckParm(const char *check);
|
int CheckParm(const char *check);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ void FreeAllMem(void);
|
||||||
void PrintMem(void);
|
void PrintMem(void);
|
||||||
|
|
||||||
void Message(int MsgType, ...);
|
void Message(int MsgType, ...);
|
||||||
void Error(const char *error, ...)
|
[[noreturn]] void Error(const char *error, ...)
|
||||||
__attribute__((format(printf,1,2),noreturn));
|
__attribute__((format(printf,1,2),noreturn));
|
||||||
|
|
||||||
int q_snprintf(char *str, size_t size, const char *format, ...);
|
int q_snprintf(char *str, size_t size, const char *format, ...);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue