mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 05:07:39 +00:00
Silenced warnings about unused variables.
This commit is contained in:
parent
5507006fc2
commit
c0f277a7d8
@ -35,6 +35,7 @@ int main(int, char*[])
|
|||||||
{
|
{
|
||||||
checkable val;
|
checkable val;
|
||||||
int n = val;
|
int n = val;
|
||||||
|
(void)n;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ int main(int, char*[])
|
|||||||
{
|
{
|
||||||
checkable val;
|
checkable val;
|
||||||
void* p = val;
|
void* p = val;
|
||||||
|
(void)p;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<int const> r( 1 ); // this should produce an ERROR
|
boost::reference_wrapper<int const> r( 1 ); // this should produce an ERROR
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -13,4 +13,5 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<int> r = boost::ref( 2 ); // this should produce an ERROR
|
boost::reference_wrapper<int> r = boost::ref( 2 ); // this should produce an ERROR
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ X const crv() { return X(); }
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<X const> r = boost::ref( crv() ); // this should produce an ERROR
|
boost::reference_wrapper<X const> r = boost::ref( crv() ); // this should produce an ERROR
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<int const> r = boost::cref( 2 ); // should fail
|
boost::reference_wrapper<int const> r = boost::cref( 2 ); // should fail
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -20,6 +20,7 @@ X const crv() { return X(); }
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<X const> r = boost::cref( crv() ); // must fail
|
boost::reference_wrapper<X const> r = boost::cref( crv() ); // must fail
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user