From 572b077dbf4edbc995c37b0c09372cf5b54886ac Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 22 Jun 2019 20:52:33 -0700 Subject: [PATCH] Fix warnings --- include/fmt/chrono.h | 2 ++ 1 file changed, 2 insertions(+) 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); }