fix warnings

[SVN r11157]
This commit is contained in:
Jens Maurer
2001-09-19 20:24:40 +00:00
parent eb339e9f83
commit 483907c887
9 changed files with 35 additions and 31 deletions

View File

@ -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()
{

View File

@ -26,6 +26,7 @@ struct typifier
int test()
{
X<typifier<int> > x;
(void) &x; // avoid "unused variable" warning
return 0;
}

View File

@ -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

View File

@ -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()

View File

@ -25,6 +25,7 @@ public:
int test()
{
t inst = { 0, 0, };
(void) &inst; // avoid "unused variable" warning
return 0;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -15,7 +15,7 @@ namespace boost_no_std_messages{
int test()
{
const std::messages<char>* pmf = 0;
(void)pmf;
(void) &pmf;
return 0;
}