Skip to content

Commit

Permalink
ignore unusable param in non-float overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Gray committed Nov 14, 2020
1 parent 93f1e22 commit 03c29de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ inline std::chrono::duration<Rep, std::milli> get_milliseconds(

template <typename Char, typename Rep, typename OutputIt,
FMT_ENABLE_IF(std::is_integral<Rep>::value)>
OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
OutputIt format_duration_value(OutputIt out, Rep val, int) {
static FMT_CONSTEXPR_DECL const Char format[] = {'{', '}', 0};
return format_to(out, FMT_STRING(format), val);
}
Expand Down

0 comments on commit 03c29de

Please sign in to comment.