diff --git a/test/boost_no_dep_nested_class.ipp b/test/boost_no_dep_nested_class.ipp index 779b2229..26642995 100644 --- a/test/boost_no_dep_nested_class.ipp +++ b/test/boost_no_dep_nested_class.ipp @@ -37,9 +37,9 @@ void foo_test(T) typedef typename foo_type::BOOST_NESTED_TEMPLATE bar bar_type; foo ft; bar_type bt; - (void)bt; - (void)ft; -}; + (void) &bt; + (void) &ft; +} int test() { diff --git a/test/boost_no_dep_val_param.ipp b/test/boost_no_dep_val_param.ipp index 08447431..b74d8a14 100644 --- a/test/boost_no_dep_val_param.ipp +++ b/test/boost_no_dep_val_param.ipp @@ -26,6 +26,7 @@ struct typifier int test() { X > x; + (void) &x; // avoid "unused variable" warning return 0; } diff --git a/test/boost_no_mem_tem_keyword.ipp b/test/boost_no_mem_tem_keyword.ipp index 7c7024d0..59629b1f 100644 --- a/test/boost_no_mem_tem_keyword.ipp +++ b/test/boost_no_mem_tem_keyword.ipp @@ -39,6 +39,7 @@ void test_proc(T i) typedef typename ifoo::template nested bound_t; typedef typename bound_t::other other; other o; + (void) &o; // avoid "unused variable" warning } #else diff --git a/test/boost_no_mem_templates.ipp b/test/boost_no_mem_templates.ipp index 78de0ef7..fa2c1955 100644 --- a/test/boost_no_mem_templates.ipp +++ b/test/boost_no_mem_templates.ipp @@ -42,6 +42,7 @@ void test_proc(T i) typedef typename ifoo::BOOST_NESTED_TEMPLATE nested bound_t; typedef typename bound_t::other other; other o; + (void) &o; } int test() diff --git a/test/boost_no_priv_aggregate.ipp b/test/boost_no_priv_aggregate.ipp index fab52207..c345d0fd 100644 --- a/test/boost_no_priv_aggregate.ipp +++ b/test/boost_no_priv_aggregate.ipp @@ -25,6 +25,7 @@ public: int test() { t inst = { 0, 0, }; + (void) &inst; // avoid "unused variable" warning return 0; } diff --git a/test/boost_no_std_iter_traits.ipp b/test/boost_no_std_iter_traits.ipp index 7410914d..539b0051 100644 --- a/test/boost_no_std_iter_traits.ipp +++ b/test/boost_no_std_iter_traits.ipp @@ -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; } diff --git a/test/boost_no_std_iterator.ipp b/test/boost_no_std_iterator.ipp index 2e0b484d..84fa0eab 100644 --- a/test/boost_no_std_iterator.ipp +++ b/test/boost_no_std_iterator.ipp @@ -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; } diff --git a/test/boost_no_std_locale.ipp b/test/boost_no_std_locale.ipp index 756b947d..6d35014b 100644 --- a/test/boost_no_std_locale.ipp +++ b/test/boost_no_std_locale.ipp @@ -21,8 +21,8 @@ int test() // construct a pointer to a facet: // const std::ctype* pct = 0; - (void)l1; - (void)pct; + (void) &l1; + (void) &pct; return 0; } diff --git a/test/boost_no_std_messages.ipp b/test/boost_no_std_messages.ipp index c51db069..e62a381d 100644 --- a/test/boost_no_std_messages.ipp +++ b/test/boost_no_std_messages.ipp @@ -15,7 +15,7 @@ namespace boost_no_std_messages{ int test() { const std::messages* pmf = 0; - (void)pmf; + (void) &pmf; return 0; }