From 7434e116a7783ffbdeea86e6ef82a0cc664142a3 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 29 Aug 2016 23:03:06 +0100 Subject: [PATCH] Try using boost::long_long_type to avoid warning. --- include/boost/unordered/detail/buckets.hpp | 4 ++-- test/Jamfile.v2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/unordered/detail/buckets.hpp b/include/boost/unordered/detail/buckets.hpp index 232944b0..31e1ee59 100644 --- a/include/boost/unordered/detail/buckets.hpp +++ b/include/boost/unordered/detail/buckets.hpp @@ -583,12 +583,12 @@ namespace boost { namespace unordered { namespace detail { // TODO: Maybe not if std::size_t is smaller than long long. #if !defined(BOOST_NO_LONG_LONG) template <> - struct pick_policy { + struct pick_policy { typedef prime_policy type; }; template <> - struct pick_policy { + struct pick_policy { typedef prime_policy type; }; #endif diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index b6a362dc..e31f1534 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -11,9 +11,9 @@ project unordered-test/unordered intel:on # Would be nice to define -Wundef, but I'm getting warnings from # Boost.Preprocessor on trunk. - gcc:"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow -Wno-long-long" + gcc:"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow" darwin:"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow" - clang:"-pedantic -Wextra -Wno-long-long" + clang:"-pedantic -Wextra" ; #alias framework : /boost/test//boost_unit_test_framework ;