Fix some warnings in test/example code.

This commit is contained in:
Daniel James
2016-05-30 15:19:11 +01:00
parent 62cc73b31d
commit 739dd5df58
3 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,11 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying // Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Force use of assert.
#if defined(NDEBUG)
#undef NDEBUG
#endif
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
#include <cassert> #include <cassert>

View File

@@ -3,6 +3,11 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying // Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Force use of assert.
#if defined(NDEBUG)
#undef NDEBUG
#endif
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
#include <cassert> #include <cassert>

View File

@@ -58,8 +58,6 @@ void numeric_extra_tests(typename
template <class T> template <class T>
void numeric_test(T*) void numeric_test(T*)
{ {
typedef boost::hash_detail::limits<T> limits;
compile_time_tests((T*) 0); compile_time_tests((T*) 0);
BOOST_HASH_TEST_NAMESPACE::hash<T> x1; BOOST_HASH_TEST_NAMESPACE::hash<T> x1;