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.
|
// Handling fatal errors.
|
||||||
#if defined(__GNUC__)
|
[[noreturn]]
|
||||||
__attribute__((noreturn))
|
|
||||||
#endif
|
|
||||||
void FatalError(const std::string &message);
|
void FatalError(const std::string &message);
|
||||||
|
|
||||||
// A native settings store.
|
// A native settings store.
|
||||||
|
@ -83,9 +83,7 @@ using std::max;
|
|||||||
using std::swap;
|
using std::swap;
|
||||||
using std::fabs;
|
using std::fabs;
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
[[noreturn]]
|
||||||
__attribute__((noreturn))
|
|
||||||
#endif
|
|
||||||
void AssertFailure(const char *file, unsigned line, const char *function,
|
void AssertFailure(const char *file, unsigned line, const char *function,
|
||||||
const char *condition, const char *message);
|
const char *condition, const char *message);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user