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