From 9c35b115219750e2ecf04b9fc50e8a3eba109341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 24 Jan 2019 12:26:09 +0100 Subject: [PATCH] Math: fix unused function warning on Emscripten. --- src/Magnum/Math/Test/TypeTraitsTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Math/Test/TypeTraitsTest.cpp b/src/Magnum/Math/Test/TypeTraitsTest.cpp index 39c6b9eb7..091e1f55f 100644 --- a/src/Magnum/Math/Test/TypeTraitsTest.cpp +++ b/src/Magnum/Math/Test/TypeTraitsTest.cpp @@ -64,8 +64,10 @@ struct { Float getStep(Float) const { return aStep; } Double get(Double) const { return b; } Double getStep(Double) const { return bStep; } + #ifndef CORRADE_TARGET_EMSCRIPTEN long double get(long double) const { return c; } long double getStep(long double) const { return cStep; } + #endif } EqualsZeroData[EqualsZeroDataCount] = { {"", -3.141592653589793f, 5.0e-5f, -3.141592653589793, 5.0e-14, -3.141592653589793l, #if !defined(_MSC_VER) && (!defined(CORRADE_TARGET_ANDROID) || __LP64__)