Skip to content

Commit

Permalink
Use C++11 [[noreturn]] attribute instead of GNU-specific one.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jun 19, 2020
1 parent 3d51b39 commit 0da4a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/platform/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions src/solvespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0da4a6b

Please sign in to comment.