Enable [[noreturn]] some.

This commit is contained in:
Bruce Mitchener
2019-04-08 18:52:20 +07:00
committed by Victor Zverovich
parent 2808395481
commit aeb5ad3ce1
5 changed files with 25 additions and 25 deletions

View File

@@ -22,12 +22,6 @@
#undef max
#if FMT_HAS_CPP_ATTRIBUTE(noreturn)
# define FMT_NORETURN [[noreturn]]
#else
# define FMT_NORETURN
#endif
using fmt::internal::fp;
template <bool is_iec559> void test_construct_from_double() {

View File

@@ -52,9 +52,9 @@ int SingleEvaluationTest::b_;
void do_nothing() {}
void throw_exception() { throw std::runtime_error("test"); }
FMT_NORETURN void throw_exception() { throw std::runtime_error("test"); }
void throw_system_error() { throw fmt::system_error(EDOM, "test"); }
FMT_NORETURN void throw_system_error() { throw fmt::system_error(EDOM, "test"); }
// Tests that when EXPECT_THROW_MSG fails, it evaluates its message argument
// exactly once.