1
0
forked from boostorg/core

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

This commit is contained in:
Peter Dimov
2021-06-10 08:25:28 +03:00
parent 71c3d320d5
commit 1a011cde56

View File

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