From b2892848d600b2635fe2f3e2f30f9478a3c3f2c2 Mon Sep 17 00:00:00 2001 From: Chen Hayat Date: Thu, 3 Nov 2016 12:40:42 +0200 Subject: [PATCH] Fix Klockwork compilation warning --- fmt/format.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fmt/format.h b/fmt/format.h index 9913e4b0..084c69d7 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -963,7 +963,8 @@ inline void format_decimal(Char *buffer, UInt value, unsigned num_digits, template inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) { - return format_decimal(buffer, value, num_digits, NoThousandsSep()); + format_decimal(buffer, value, num_digits, NoThousandsSep()); + return; } #ifndef _WIN32 @@ -1912,7 +1913,10 @@ class ArgFormatterBase : public ArgVisitor { void visit_bool(bool value) { if (spec_.type_) - return visit_any_int(value); + { + visit_any_int(value); + return; + } write(value); }