From 1a011cde569e4c9784d974be7c1cb21034c7401b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 10 Jun 2021 08:25:28 +0300 Subject: [PATCH] Initialize variables in ignore_unused_test to avoid a g++-11 warning --- test/ignore_unused_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/ignore_unused_test.cpp b/test/ignore_unused_test.cpp index 67bdd80..78cef56 100644 --- a/test/ignore_unused_test.cpp +++ b/test/ignore_unused_test.cpp @@ -15,23 +15,23 @@ BOOST_CXX14_CONSTEXPR int test_fun(int a) int main() { { - int a; + int a = 0; boost::ignore_unused(a); } { - int a, b; + int a = 0, b = 0; boost::ignore_unused(a, b); } { - int a, b, c; + int a = 0, b = 0, c = 0; boost::ignore_unused(a, b, c); } { - int a, b, c, d; + int a = 0, b = 0, c = 0, d = 0; boost::ignore_unused(a, b, c, d); } { - int a, b, c, d, e; + int a = 0, b = 0, c = 0, d = 0, e = 0; boost::ignore_unused(a, b, c, d, e); }