Browse Source

Math: expand silly warning suppression in a test to GCC 13.

pull/620/head
Vladimír Vondruš 3 years ago
parent
commit
fee1d23445
  1. 5
      src/Magnum/Math/Test/AngleTest.cpp

5
src/Magnum/Math/Test/AngleTest.cpp

@ -220,6 +220,11 @@ void AngleTest::constructNoInit() {
/* The warning is reported for both debug and release build */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
/* On GCC 13 it's -Wuninitialized now, the compiler is now EVEN MORE
DEFINITELY RIGHT that I'm doing something wrong */
#if __GNUC__ >= 13
#pragma GCC diagnostic ignored "-Wuninitialized"
#endif
#ifdef __OPTIMIZE__
CORRADE_EXPECT_FAIL("GCC 6.1+ misoptimizes and overwrites the value.");
#endif

Loading…
Cancel
Save