Skip to content

Commit 03c29de

Browse files
author
Walter Gray
committed
ignore unusable param in non-float overload
1 parent 93f1e22 commit 03c29de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/fmt/chrono.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ inline std::chrono::duration<Rep, std::milli> get_milliseconds(
764764

765765
template <typename Char, typename Rep, typename OutputIt,
766766
FMT_ENABLE_IF(std::is_integral<Rep>::value)>
767-
OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
767+
OutputIt format_duration_value(OutputIt out, Rep val, int) {
768768
static FMT_CONSTEXPR_DECL const Char format[] = {'{', '}', 0};
769769
return format_to(out, FMT_STRING(format), val);
770770
}

0 commit comments

Comments
 (0)