mirror of
https://github.com/boostorg/core.git
synced 2025-05-09 23:03:54 +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;
|
||||
int n = val;
|
||||
(void)n;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ int main(int, char*[])
|
||||
{
|
||||
checkable val;
|
||||
void* p = val;
|
||||
(void)p;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
int main()
|
||||
{
|
||||
boost::reference_wrapper<int const> r( 1 ); // this should produce an ERROR
|
||||
(void)r;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -13,4 +13,5 @@
|
||||
int main()
|
||||
{
|
||||
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()
|
||||
{
|
||||
boost::reference_wrapper<X const> r = boost::ref( crv() ); // this should produce an ERROR
|
||||
(void)r;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -16,6 +16,7 @@
|
||||
int main()
|
||||
{
|
||||
boost::reference_wrapper<int const> r = boost::cref( 2 ); // should fail
|
||||
(void)r;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user