From 3335a05aa67918db9ce32e8dda43cf4d6b65618d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 8 Apr 2023 19:41:15 +0200 Subject: [PATCH] Trade: work around a GCC 4.8 crash in the test. --- src/Magnum/Trade/Test/AnimationDataTest.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Magnum/Trade/Test/AnimationDataTest.cpp b/src/Magnum/Trade/Test/AnimationDataTest.cpp index b876050e5..af70630d2 100644 --- a/src/Magnum/Trade/Test/AnimationDataTest.cpp +++ b/src/Magnum/Trade/Test/AnimationDataTest.cpp @@ -242,7 +242,7 @@ void AnimationDataTest::constructTrack() { struct Keyframe { Float time; CubicHermite2D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ AnimationTrackData data{ AnimationTrackTarget::Scaling2D, 42, @@ -266,7 +266,7 @@ void AnimationDataTest::constructTrackTypeErased() { struct Keyframe { Float time; CubicHermite3D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ AnimationTrackData data{ AnimationTrackTarget::Translation3D, 42, @@ -292,7 +292,7 @@ void AnimationDataTest::constructTrackTypeErasedImplicitResultType() { struct Keyframe { Float time; Quaternion value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ AnimationTrackData data{ AnimationTrackTarget::Rotation3D, 42, @@ -317,7 +317,7 @@ void AnimationDataTest::constructTrackExplicitInterpolator() { struct Keyframe { Float time; CubicHermite2D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ AnimationTrackData data{ AnimationTrackTarget::Scaling2D, 42, @@ -342,7 +342,7 @@ void AnimationDataTest::constructTrackExplicitInterpolatorTypeErased() { struct Keyframe { Float time; CubicHermite2D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ auto interpolator = reinterpret_cast(static_cast(Math::splerp)); @@ -371,7 +371,7 @@ void AnimationDataTest::constructTrackExplicitInterpolatorTypeErasedImplicitResu struct Keyframe { Float time; Vector3 value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ auto interpolator = reinterpret_cast(static_cast(Math::lerp)); @@ -399,7 +399,7 @@ void AnimationDataTest::constructTrackCustomInterpolator() { struct Keyframe { Float time; CubicHermite2D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ AnimationTrackData data{ AnimationTrackTarget::Scaling2D, 42, @@ -423,7 +423,7 @@ void AnimationDataTest::constructTrackCustomInterpolatorTypeErased() { struct Keyframe { Float time; CubicHermite2D value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ auto interpolator = reinterpret_cast(static_cast(Math::splerp)); @@ -451,7 +451,7 @@ void AnimationDataTest::constructTrackCustomInterpolatorTypeErasedImplicitResult struct Keyframe { Float time; Vector3 value; - } keyframes[3]{}; + } keyframes[3]; /* {} makes GCC 4.8 crash */ auto interpolator = reinterpret_cast(static_cast(Math::lerp));