replace noreturn attribute with standard C++ version
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
static constexpr Domain fatal_error_domain("fatal_error");
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
static void
|
||||
Abort()
|
||||
{
|
||||
|
@@ -29,11 +29,11 @@
|
||||
/**
|
||||
* Log the specified message and abort the process.
|
||||
*/
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
void
|
||||
FatalError(const char *msg);
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
void
|
||||
FormatFatalError(const char *fmt, ...);
|
||||
|
||||
@@ -42,19 +42,19 @@ FormatFatalError(const char *fmt, ...);
|
||||
* fail. Prints the given message, the system error message (from
|
||||
* errno or GetLastError()) and abort the process.
|
||||
*/
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
void
|
||||
FatalSystemError(const char *msg);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
void
|
||||
FatalSystemError(const char *msg, DWORD code);
|
||||
|
||||
#endif
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
void
|
||||
FormatFatalSystemError(const char *fmt, ...);
|
||||
|
||||
|
Reference in New Issue
Block a user