diff --git a/test/boost_has_part_alloc.ipp b/test/boost_has_part_alloc.ipp index ea31dd94..fac5fed4 100644 --- a/test/boost_has_part_alloc.ipp +++ b/test/boost_has_part_alloc.ipp @@ -25,7 +25,7 @@ namespace boost_has_partial_std_allocator{ // template -int test_allocator(const T&) +int test_allocator(const T& i) { typedef std::allocator alloc1_t; #if !((__cplusplus > 201700) || (defined(_MSVC_LANG) && (_MSVC_LANG > 201700))) @@ -38,7 +38,7 @@ int test_allocator(const T&) typedef typename alloc1_t::value_type value_type BOOST_UNUSED_ATTRIBUTE; #endif alloc1_t a1; - + (void)i; #if !((__cplusplus > 201700) || (defined(_MSVC_LANG) && (_MSVC_LANG > 201700))) pointer p = a1.allocate(1); const_pointer cp = p; diff --git a/test/boost_no_std_allocator.ipp b/test/boost_no_std_allocator.ipp index c3868dd8..920bf1de 100644 --- a/test/boost_no_std_allocator.ipp +++ b/test/boost_no_std_allocator.ipp @@ -25,7 +25,7 @@ namespace boost_no_std_allocator{ #endif template -int test_allocator(const T&) +int test_allocator(const T& i) { typedef std::allocator alloc1_t; #if !((__cplusplus > 201700) || (defined(_MSVC_LANG) && (_MSVC_LANG > 201700))) @@ -41,6 +41,7 @@ int test_allocator(const T&) alloc1_t a1; alloc1_t a2(a1); + (void)i; #if !((__cplusplus > 201700) || (defined(_MSVC_LANG) && (_MSVC_LANG > 201700))) // stuff deprecated in C++17: typedef typename alloc1_t::BOOST_NESTED_TEMPLATE rebind binder_t;