Fix Klockwork compilation warning

This commit is contained in:
Chen Hayat 2016-11-03 12:40:42 +02:00
parent 7ce7def515
commit b2892848d6

View File

@ -963,7 +963,8 @@ inline void format_decimal(Char *buffer, UInt value, unsigned num_digits,
template <typename UInt, typename Char> template <typename UInt, typename Char>
inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) { 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 #ifndef _WIN32
@ -1912,7 +1913,10 @@ class ArgFormatterBase : public ArgVisitor<Impl, void> {
void visit_bool(bool value) { void visit_bool(bool value) {
if (spec_.type_) if (spec_.type_)
return visit_any_int(value); {
visit_any_int(value);
return;
}
write(value); write(value);
} }