n/lerp: avoid unused variables in release

This commit is contained in:
Danny Robson 2015-06-04 20:07:09 +10:00
parent 6926c95d4d
commit 244a632647

View File

@ -43,7 +43,9 @@ util::lerp::trunc (T a, T, T weight)
{ {
static_assert (std::is_floating_point<T>::value, static_assert (std::is_floating_point<T>::value,
"lerp is only defined for floating types"); "lerp is only defined for floating types");
CHECK_LIMIT (weight, 0, 1); CHECK_LIMIT (weight, 0, 1);
(void)weight;
return a; return a;
} }