From eaaa44c3cee28fce1262d345852f890b4780010e Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Fri, 10 May 2019 17:39:05 +0700 Subject: [PATCH] Use [[maybe_unused]] to suppress -Wunused-variable --- test/format-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/format-test.cc b/test/format-test.cc index 20ff737f..7a1285b6 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2540,9 +2540,9 @@ TEST(FormatTest, EmphasisNonHeaderOnly) { TEST(FormatTest, CharTraitsIsNotAmbiguous) { // Test that we don't inject internal names into the std namespace. using namespace std; - char_traits::char_type c; + FMT_MAYBE_UNUSED char_traits::char_type c; #if __cplusplus >= 201103L std::string s; - auto lval = begin(s); + FMT_MAYBE_UNUSED auto lval = begin(s); #endif }