From c8d8c7edd4aa881a81d4c8ca219bc5c94b4e70ca Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 30 May 2016 15:19:11 +0100 Subject: [PATCH] Fix some warnings in test/example code. --- examples/point.cpp | 5 +++++ examples/portable.cpp | 5 +++++ test/hash_number_test.cpp | 2 -- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/point.cpp b/examples/point.cpp index 6943342..f3d30e1 100644 --- a/examples/point.cpp +++ b/examples/point.cpp @@ -3,6 +3,11 @@ // 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) +// Force use of assert. +#if defined(NDEBUG) +#undef NDEBUG +#endif + #include #include diff --git a/examples/portable.cpp b/examples/portable.cpp index 88f2fc7..511133e 100644 --- a/examples/portable.cpp +++ b/examples/portable.cpp @@ -3,6 +3,11 @@ // 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) +// Force use of assert. +#if defined(NDEBUG) +#undef NDEBUG +#endif + #include #include diff --git a/test/hash_number_test.cpp b/test/hash_number_test.cpp index 242c731..9adb5c6 100644 --- a/test/hash_number_test.cpp +++ b/test/hash_number_test.cpp @@ -58,8 +58,6 @@ void numeric_extra_tests(typename template void numeric_test(T*) { - typedef boost::hash_detail::limits limits; - compile_time_tests((T*) 0); BOOST_HASH_TEST_NAMESPACE::hash x1;