From 507c182f4ca3643bb2723e52bc48ef9517bacbb9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 10 Jun 2021 09:40:08 +0300 Subject: [PATCH] Revert "Initialize variables in ignore_unused_test to avoid a g++-11 warning" This reverts commit 1a011cde569e4c9784d974be7c1cb21034c7401b. --- 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 78cef56..67bdd80 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 = 0; + int a; boost::ignore_unused(a); } { - int a = 0, b = 0; + int a, b; boost::ignore_unused(a, b); } { - int a = 0, b = 0, c = 0; + int a, b, c; boost::ignore_unused(a, b, c); } { - int a = 0, b = 0, c = 0, d = 0; + int a, b, c, d; boost::ignore_unused(a, b, c, d); } { - int a = 0, b = 0, c = 0, d = 0, e = 0; + int a, b, c, d, e; boost::ignore_unused(a, b, c, d, e); }