From 2d4631a5804c63a3dc8d2154240aa270619de464 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 14 Mar 2015 14:54:37 +0800 Subject: [PATCH] Silence -Wunused-parameter --- format.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/format.cc b/format.cc index 828a3644..3d2e75a6 100644 --- a/format.cc +++ b/format.cc @@ -451,6 +451,7 @@ const uint64_t fmt::internal::BasicData::POWERS_OF_10_64[] = { }; FMT_FUNC void fmt::internal::report_unknown_type(char code, const char *type) { + (void)type; if (std::isprint(static_cast(code))) { FMT_THROW(fmt::FormatError( fmt::format("unknown format code '{}' for {}", code, type))); @@ -725,6 +726,7 @@ void fmt::internal::PrintfFormatter::parse_flags( template Arg fmt::internal::PrintfFormatter::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);