summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-15 21:03:09 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-16 00:08:18 -0700
commit591f51f3d3becf0ff940516010d406bbeec94cf2 (patch)
treeead4ad5d4deaaec36c82bcd7dd42575d0e44f83a /src/system
parentb5d1a0901022d4711973740edadd87ce5913ac68 (diff)
replace noreturn attribute with standard C++ version
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FatalError.cxx2
-rw-r--r--src/system/FatalError.hxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx
index f3e8b6e0c..0fc5df8b8 100644
--- a/src/system/FatalError.cxx
+++ b/src/system/FatalError.cxx
@@ -36,7 +36,7 @@
static constexpr Domain fatal_error_domain("fatal_error");
-gcc_noreturn
+[[noreturn]]
static void
Abort()
{
diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx
index 26cdcb189..43554d71d 100644
--- a/src/system/FatalError.hxx
+++ b/src/system/FatalError.hxx
@@ -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, ...);