From 77c892c88e210c05339f8100a5c6be191965d4e5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 27 Aug 2017 08:16:46 -0700 Subject: [PATCH] Fix more warnings --- fmt/printf.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fmt/printf.h b/fmt/printf.h index 272da034..f068b959 100644 --- a/fmt/printf.h +++ b/fmt/printf.h @@ -67,7 +67,7 @@ class IsZeroInt { template typename std::enable_if::value, bool>::type - operator()(T value) { return false; } + operator()(T) { return false; } }; template @@ -103,7 +103,6 @@ class ArgConverter { bool is_signed = type_ == 'd' || type_ == 'i'; typedef typename internal::conditional< is_same::value, U, T>::type TargetType; - typedef basic_context context; if (sizeof(TargetType) <= sizeof(int)) { // Extra casts are used to silence warnings. if (is_signed) { @@ -128,8 +127,7 @@ class ArgConverter { } template - typename std::enable_if::value>::type - operator()(U value) { + typename std::enable_if::value>::type operator()(U) { // No coversion needed for non-integral types. } }; @@ -197,7 +195,7 @@ class PrintfWidthHandler { template typename std::enable_if::value, unsigned>::type - operator()(T value) { + operator()(T) { FMT_THROW(format_error("width is not integer")); return 0; }