From fee1d234456ce1e7d96ff481e1e0f8b47f389296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 10 May 2023 18:16:13 +0200 Subject: [PATCH] Math: expand silly warning suppression in a test to GCC 13. --- src/Magnum/Math/Test/AngleTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/Math/Test/AngleTest.cpp b/src/Magnum/Math/Test/AngleTest.cpp index fe6aa1a2e..f34ecfc38 100644 --- a/src/Magnum/Math/Test/AngleTest.cpp +++ b/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