Revert "Initialize variables in ignore_unused_test to avoid a g++-11 warning"

This reverts commit 1a011cde569e4c9784d974be7c1cb21034c7401b.
This commit is contained in:
Peter Dimov 2021-06-10 09:40:08 +03:00
parent 1a011cde56
commit 507c182f4c

View File

@ -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);
}