diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 77490665..8f2e6385 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -389,6 +389,7 @@ inline bool isnan(T value) { template ::value)> inline int to_nonnegative_int(T value, int upper) { FMT_ASSERT(value >= 0 && value <= upper, "invalid value"); + (void)upper; return static_cast(value); } template ::value)> @@ -396,6 +397,7 @@ inline int to_nonnegative_int(T value, int upper) { FMT_ASSERT( std::isnan(value) || (value >= 0 && value <= static_cast(upper)), "invalid value"); + (void)upper; return static_cast(value); }