From c56ae130a70260303a2bbc4c259b8b374d1f3ee2 Mon Sep 17 00:00:00 2001 From: Dennis Mannhart Date: Fri, 4 May 2018 08:47:35 +0200 Subject: [PATCH] test_controlmath remove static --- src/systemcmds/tests/test_controlmath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_controlmath.cpp b/src/systemcmds/tests/test_controlmath.cpp index ef4af02944..0fbb052271 100644 --- a/src/systemcmds/tests/test_controlmath.cpp +++ b/src/systemcmds/tests/test_controlmath.cpp @@ -74,7 +74,7 @@ bool ControlMathTest::testPrioritizeVector() // the static keywork is a workaround for an internal bug of GCC // "internal compiler error: in trunc_int_for_mode, at explow.c:55" - static matrix::Vector2f v_r = ControlMath::constrainXY(v0, v1, max); + matrix::Vector2f v_r = ControlMath::constrainXY(v0, v1, max); ut_assert_true(fabsf(v_r(0)) - max < FLT_EPSILON && v_r(0) > 0.0f); ut_assert_true(fabsf(v_r(1) - 0.0f) < FLT_EPSILON);