mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Fix Klockwork compilation warning
This commit is contained in:
parent
1daddec151
commit
05ba3e7888
@ -1000,7 +1000,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
|
||||||
@ -1948,8 +1949,10 @@ class ArgFormatterBase : public ArgVisitor<Impl, void> {
|
|||||||
void visit_any_double(T value) { writer_.write_double(value, spec_); }
|
void visit_any_double(T value) { writer_.write_double(value, spec_); }
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user