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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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