diff --git a/include/fmt/core.h b/include/fmt/core.h index 31960a8f..6ab2df08 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -583,7 +583,7 @@ FMT_MAKE_VALUE(pointer_type, std::nullptr_t, const void*) // formatting of "[const] volatile char *" which is printed as bool by // iostreams. template -void make_value(const T *p) { +void make_value(const T *) { static_assert(!sizeof(T), "formatting of non-void pointers is disallowed"); } diff --git a/include/fmt/format.h b/include/fmt/format.h index f30d5f9c..a0572fc5 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -904,7 +904,7 @@ inline Char *format_decimal(Char *buffer, UInt value, unsigned num_digits, template inline Iterator format_decimal( - Iterator out, UInt value, unsigned num_digits, ThousandsSep thousands_sep) { + Iterator out, UInt value, unsigned num_digits, ThousandsSep) { // Buffer should be large enough to hold all digits (digits10 + 1) and null. char buffer[std::numeric_limits::digits10 + 2]; format_decimal(buffer, value, num_digits, no_thousands_sep());