From 244a6326476458ea657e624a98a865008717bb9b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 4 Jun 2015 20:07:09 +1000 Subject: [PATCH] n/lerp: avoid unused variables in release --- noise/lerp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/noise/lerp.cpp b/noise/lerp.cpp index a204b67f..9cde7d89 100644 --- a/noise/lerp.cpp +++ b/noise/lerp.cpp @@ -43,7 +43,9 @@ util::lerp::trunc (T a, T, T weight) { static_assert (std::is_floating_point::value, "lerp is only defined for floating types"); + CHECK_LIMIT (weight, 0, 1); + (void)weight; return a; }