From 68f0ac82715810282708006ef836b6fdb3385fec Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 3 Jun 2018 08:03:56 +0200 Subject: [PATCH] Fix a bogus MSVC warning about unreachable code --- include/fmt/format.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 369e8869..c4c9fea8 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1727,8 +1727,7 @@ class precision_checker: public function { template FMT_CONSTEXPR typename std::enable_if< !is_integer::value, unsigned long long>::type operator()(T) { - handler_.on_error("precision is not integer"); - return 0; + return handler_.on_error("precision is not integer"), 0; } private: