From 5c2ccc44ad39253e46674cda693b202a832eaf6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 21 Jan 2022 19:56:11 +0100 Subject: [PATCH] MeshTools: hello, GCC 4.8, HAPPY FRIDAY TO YOU TOO --- src/Magnum/MeshTools/Test/FilterAttributesTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Magnum/MeshTools/Test/FilterAttributesTest.cpp b/src/Magnum/MeshTools/Test/FilterAttributesTest.cpp index 2a41a1923..0e25a9e85 100644 --- a/src/Magnum/MeshTools/Test/FilterAttributesTest.cpp +++ b/src/Magnum/MeshTools/Test/FilterAttributesTest.cpp @@ -260,7 +260,8 @@ void FilterAttributesTest::filterOnlyAttributeIdsOutOfBounds() { CORRADE_SKIP("CORRADE_NO_ASSERT defined, can't test assertions"); #endif - Vertex vertices[3]{}; + /* GCC 4.8 dies if I try to initialize this with a {}. I won't, then. */ + Vertex vertices[3]; Trade::MeshData mesh{MeshPrimitive::TriangleFan, {}, vertices, { @@ -494,7 +495,8 @@ void FilterAttributesTest::filterExceptAttributeIdsOutOfBounds() { CORRADE_SKIP("CORRADE_NO_ASSERT defined, can't test assertions"); #endif - Vertex vertices[3]{}; + /* GCC 4.8 dies if I try to initialize this with a {}. I won't, then. */ + Vertex vertices[3]; Trade::MeshData mesh{MeshPrimitive::TriangleFan, {}, vertices, {