Use C++11 [[noreturn]] attribute instead of GNU-specific one.
This commit is contained in:
parent
3d51b3949b
commit
0da4a6b78a
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user