From 5073288e5a7973f3b612baf86124a445dd7d6214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 5 Jun 2019 22:11:13 +0200 Subject: [PATCH] [wip] fix for CORRADE_NO_ASSERT --- src/Magnum/Animation/Interpolation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/Animation/Interpolation.cpp b/src/Magnum/Animation/Interpolation.cpp index 225424a63..90d0c636e 100644 --- a/src/Magnum/Animation/Interpolation.cpp +++ b/src/Magnum/Animation/Interpolation.cpp @@ -73,6 +73,7 @@ template auto TypeTraits, Math::Complex>::interpola } CORRADE_ASSERT(false, "Animation::interpolatorFor(): can't deduce interpolator function for" << interpolation, {}); + CORRADE_ASSERT_UNREACHABLE(); } template auto TypeTraits, Math::Quaternion>::interpolator(Interpolation interpolation) -> Interpolator { @@ -85,6 +86,7 @@ template auto TypeTraits, Math::Quaternion>::int } CORRADE_ASSERT(false, "Animation::interpolatorFor(): can't deduce interpolator function for" << interpolation, {}); + CORRADE_ASSERT_UNREACHABLE(); } template auto TypeTraits, Math::DualQuaternion>::interpolator(Interpolation interpolation) -> Interpolator { @@ -97,6 +99,7 @@ template auto TypeTraits, Math::DualQuaternion< } CORRADE_ASSERT(false, "Animation::interpolatorFor(): can't deduce interpolator function for" << interpolation, {}); + CORRADE_ASSERT_UNREACHABLE(); } template auto TypeTraits, T>::interpolator(Interpolation interpolation) -> Interpolator { @@ -109,6 +112,7 @@ template auto TypeTraits, T>::interpolator(Interp } CORRADE_ASSERT(false, "Animation::interpolatorFor(): can't deduce interpolator function for" << interpolation, {}); + CORRADE_ASSERT_UNREACHABLE(); } template struct MAGNUM_EXPORT TypeTraits, Math::Complex>;