n/lerp: avoid unused variables in release
This commit is contained in:
parent
6926c95d4d
commit
244a632647
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user