diff --git a/Source/XTool/xerrhand.h b/Source/XTool/xerrhand.h index 9d891b310..ce1e1db0d 100644 --- a/Source/XTool/xerrhand.h +++ b/Source/XTool/xerrhand.h @@ -47,11 +47,11 @@ struct XErrorHandler void SetRestore(void (*rf)()); void SetCrash(void (*cf)()); void SetState(int s){state=s;} - void Abort(const char* message, int code = XERR_USER, int addval = -1, const char* subj = NULL); - void Abort(const std::string& message, int code = XERR_USER, int addval = -1, const char* subj = NULL); + [[noreturn]] void Abort(const char* message, int code = XERR_USER, int addval = -1, const char* subj = NULL); + [[noreturn]] void Abort(const std::string& message, int code = XERR_USER, int addval = -1, const char* subj = NULL); bool ShowErrorMessage(const char* message); - void Exit(); - void RTC(const char *file,unsigned int line, const char *expr); + [[noreturn]] void Exit(); + [[noreturn]] void RTC(const char *file,unsigned int line, const char *expr); }; std::string decodeStackAddress(const void* addr);