From 66c92e4049ba8ab677e10eadc24a0fc7e9b35f35 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 19 Oct 2022 22:42:13 +0200 Subject: a --- test/const-math.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/const-math.cpp b/test/const-math.cpp index afb42bf3..2b8cbc3c 100644 --- a/test/const-math.cpp +++ b/test/const-math.cpp @@ -6,6 +6,8 @@ #include #include +#if defined CORRADE_CONSTEVAL || defined MAGNUM_CONSTEXPR14 + #ifdef __GNUG__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wfloat-equal" @@ -70,3 +72,6 @@ bool app::test_const_math() #ifdef __GNUG__ # pragma GCC diagnostic pop #endif +#else +namespace floormat { bool app::test_const_math() { return true; } } +#endif -- cgit v1.2.3