forked from boostorg/config
fix warnings
[SVN r11157]
This commit is contained in:
@ -37,9 +37,9 @@ void foo_test(T)
|
||||
typedef typename foo_type::BOOST_NESTED_TEMPLATE bar<UDT2> bar_type;
|
||||
foo<T> ft;
|
||||
bar_type bt;
|
||||
(void)bt;
|
||||
(void)ft;
|
||||
};
|
||||
(void) &bt;
|
||||
(void) &ft;
|
||||
}
|
||||
|
||||
int test()
|
||||
{
|
||||
|
@ -26,6 +26,7 @@ struct typifier
|
||||
int test()
|
||||
{
|
||||
X<typifier<int> > x;
|
||||
(void) &x; // avoid "unused variable" warning
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ void test_proc(T i)
|
||||
typedef typename ifoo::template nested<double> bound_t;
|
||||
typedef typename bound_t::other other;
|
||||
other o;
|
||||
(void) &o; // avoid "unused variable" warning
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -42,6 +42,7 @@ void test_proc(T i)
|
||||
typedef typename ifoo::BOOST_NESTED_TEMPLATE nested<double> bound_t;
|
||||
typedef typename bound_t::other other;
|
||||
other o;
|
||||
(void) &o;
|
||||
}
|
||||
|
||||
int test()
|
||||
|
@ -25,6 +25,7 @@ public:
|
||||
int test()
|
||||
{
|
||||
t inst = { 0, 0, };
|
||||
(void) &inst; // avoid "unused variable" warning
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -49,23 +49,23 @@ int test()
|
||||
//
|
||||
// suppress some warnings:
|
||||
//
|
||||
(void)v;
|
||||
(void)d;
|
||||
(void)p;
|
||||
(void)r;
|
||||
(void)cat;
|
||||
(void) &v;
|
||||
(void) &d;
|
||||
(void) &p;
|
||||
(void) &r;
|
||||
(void) &cat;
|
||||
|
||||
(void)v2;
|
||||
(void)d2;
|
||||
(void)p2;
|
||||
(void)r2;
|
||||
(void)cat2;
|
||||
(void) &v2;
|
||||
(void) &d2;
|
||||
(void) &p2;
|
||||
(void) &r2;
|
||||
(void) &cat2;
|
||||
|
||||
(void)v3;
|
||||
(void)d3;
|
||||
(void)p3;
|
||||
(void)r3;
|
||||
(void)cat3;
|
||||
(void) &v3;
|
||||
(void) &d3;
|
||||
(void) &p3;
|
||||
(void) &r3;
|
||||
(void) &cat3;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -43,17 +43,17 @@ int test()
|
||||
//
|
||||
// suppress some warnings:
|
||||
//
|
||||
(void)v;
|
||||
(void)d;
|
||||
(void)p;
|
||||
(void)r;
|
||||
(void)cat;
|
||||
(void) &v;
|
||||
(void) &d;
|
||||
(void) &p;
|
||||
(void) &r;
|
||||
(void) &cat;
|
||||
|
||||
(void)v2;
|
||||
(void)d2;
|
||||
(void)p2;
|
||||
(void)r2;
|
||||
(void)cat2;
|
||||
(void) &v2;
|
||||
(void) &d2;
|
||||
(void) &p2;
|
||||
(void) &r2;
|
||||
(void) &cat2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -21,8 +21,8 @@ int test()
|
||||
// construct a pointer to a facet:
|
||||
//
|
||||
const std::ctype<char>* pct = 0;
|
||||
(void)l1;
|
||||
(void)pct;
|
||||
(void) &l1;
|
||||
(void) &pct;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace boost_no_std_messages{
|
||||
int test()
|
||||
{
|
||||
const std::messages<char>* pmf = 0;
|
||||
(void)pmf;
|
||||
(void) &pmf;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user