mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-26 20:20:04 +00:00
Silence -Wunused-parameter
This commit is contained in:
parent
593d3aef9e
commit
2d4631a580
@ -451,6 +451,7 @@ const uint64_t fmt::internal::BasicData<T>::POWERS_OF_10_64[] = {
|
||||
};
|
||||
|
||||
FMT_FUNC void fmt::internal::report_unknown_type(char code, const char *type) {
|
||||
(void)type;
|
||||
if (std::isprint(static_cast<unsigned char>(code))) {
|
||||
FMT_THROW(fmt::FormatError(
|
||||
fmt::format("unknown format code '{}' for {}", code, type)));
|
||||
@ -725,6 +726,7 @@ void fmt::internal::PrintfFormatter<Char>::parse_flags(
|
||||
template <typename Char>
|
||||
Arg fmt::internal::PrintfFormatter<Char>::get_arg(
|
||||
const Char *s, unsigned arg_index) {
|
||||
(void)s;
|
||||
const char *error = 0;
|
||||
Arg arg = arg_index == UINT_MAX ?
|
||||
next_arg(error) : FormatterBase::get_arg(arg_index - 1, error);
|
||||
|
Loading…
Reference in New Issue
Block a user