Silenced warnings about unused variables.

This commit is contained in:
Andrey Semashev 2016-11-07 17:50:58 +03:00
parent 5507006fc2
commit c0f277a7d8
7 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,7 @@ int main(int, char*[])
{
checkable val;
int n = val;
(void)n;
return 0;
}

View File

@ -35,6 +35,7 @@ int main(int, char*[])
{
checkable val;
void* p = val;
(void)p;
return 0;
}

View File

@ -15,6 +15,7 @@
int main()
{
boost::reference_wrapper<int const> r( 1 ); // this should produce an ERROR
(void)r;
}
#else

View File

@ -13,4 +13,5 @@
int main()
{
boost::reference_wrapper<int> r = boost::ref( 2 ); // this should produce an ERROR
(void)r;
}

View File

@ -19,6 +19,7 @@ X const crv() { return X(); }
int main()
{
boost::reference_wrapper<X const> r = boost::ref( crv() ); // this should produce an ERROR
(void)r;
}
#else

View File

@ -16,6 +16,7 @@
int main()
{
boost::reference_wrapper<int const> r = boost::cref( 2 ); // should fail
(void)r;
}
#else

View File

@ -20,6 +20,7 @@ X const crv() { return X(); }
int main()
{
boost::reference_wrapper<X const> r = boost::cref( crv() ); // must fail
(void)r;
}
#else