Use C++11 [[noreturn]] attribute instead of GNU-specific one.

This commit is contained in:
whitequark 2020-06-19 01:04:01 +00:00
parent 3d51b3949b
commit 0da4a6b78a
2 changed files with 2 additions and 6 deletions

View File

@ -101,9 +101,7 @@ std::string AcceleratorDescription(const KeyboardEvent &accel);
//-----------------------------------------------------------------------------
// Handling fatal errors.
#if defined(__GNUC__)
__attribute__((noreturn))
#endif
[[noreturn]]
void FatalError(const std::string &message);
// A native settings store.

View File

@ -83,9 +83,7 @@ using std::max;
using std::swap;
using std::fabs;
#if defined(__GNUC__)
__attribute__((noreturn))
#endif
[[noreturn]]
void AssertFailure(const char *file, unsigned line, const char *function,
const char *condition, const char *message);