mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Merge branch 'feature/warnings-as-errors' into develop
This commit is contained in:
@ -5,17 +5,27 @@
|
|||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
project unordered-test/unordered
|
# Adding -Wundef is blocked on (at least)
|
||||||
|
# https://github.com/boostorg/type_traits/issues/165
|
||||||
|
|
||||||
|
local gcc-flags = -Wsign-promo -Wconversion -Wsign-conversion -Wfloat-equal -Wshadow -Wno-variadic-macros ;
|
||||||
|
local clang-flags = $(gcc-flags) -Wno-c99-extensions ;
|
||||||
|
local msvc-flags = /wd4494 ;
|
||||||
|
|
||||||
|
project
|
||||||
: requirements
|
: requirements
|
||||||
|
|
||||||
<warnings>pedantic
|
<warnings>pedantic
|
||||||
<toolset>intel:<warnings>on
|
<toolset>intel:<warnings>on
|
||||||
# Would be nice to define -Wundef, but I'm getting warnings from
|
|
||||||
# Boost.Preprocessor on trunk.
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
||||||
<toolset>gcc:<cxxflags>"-Wstrict-aliasing -fstrict-aliasing -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow -Wno-variadic-macros"
|
<toolset>darwin:<cxxflags>$(gcc-flags)
|
||||||
<toolset>darwin:<cxxflags>"-Wstrict-aliasing -fstrict-aliasing -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow"
|
<toolset>clang:<cxxflags>$(clang-flags)
|
||||||
<toolset>clang:<cxxflags>"-Wstrict-aliasing -fstrict-aliasing -Wsign-promo -Wunused-parameter -Wsign-conversion -Wconversion -Wfloat-equal -Wshadow -Wno-c99-extensions -Wno-variadic-macros"
|
<toolset>msvc:<cxxflags>$(msvc-flags)
|
||||||
<toolset>msvc:<cxxflags>"/wd4494"
|
|
||||||
<toolset>gcc:<c++-template-depth>500
|
<toolset>gcc:<warnings-as-errors>on
|
||||||
|
<toolset>clang:<warnings-as-errors>on
|
||||||
|
<toolset>msvc:<warnings-as-errors>on
|
||||||
;
|
;
|
||||||
|
|
||||||
#alias framework : /boost/test//boost_unit_test_framework ;
|
#alias framework : /boost/test//boost_unit_test_framework ;
|
||||||
|
@ -11,7 +11,7 @@ template<class Policy, class SizeT> void test( SizeT x )
|
|||||||
{
|
{
|
||||||
if( x <= 4 )
|
if( x <= 4 )
|
||||||
{
|
{
|
||||||
BOOST_TEST_EQ( Policy::new_bucket_count( x ), 4 );
|
BOOST_TEST_EQ( Policy::new_bucket_count( x ), 4u );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user