From 739dd5df582dc7d39d7d2e71933c035fdf4eb422 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. --- hash/examples/point.cpp | 5 +++++ hash/examples/portable.cpp | 5 +++++ hash/test/hash_number_test.cpp | 2 -- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hash/examples/point.cpp b/hash/examples/point.cpp index 6943342..f3d30e1 100644 --- a/hash/examples/point.cpp +++ b/hash/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/hash/examples/portable.cpp b/hash/examples/portable.cpp index 88f2fc7..511133e 100644 --- a/hash/examples/portable.cpp +++ b/hash/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/hash/test/hash_number_test.cpp b/hash/test/hash_number_test.cpp index 242c731..9adb5c6 100644 --- a/hash/test/hash_number_test.cpp +++ b/hash/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;