forked from boostorg/container_hash
Update warning suppressions
This commit is contained in:
@@ -5,13 +5,16 @@
|
|||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
|
local gcc-flags = -Wunused-parameter -Wconversion -Wsign-conversion -Wfloat-equal -Wshadow -Wno-variadic-macros ;
|
||||||
|
local clang-flags = $(gcc-flags) ;
|
||||||
|
|
||||||
project hash-tests
|
project hash-tests
|
||||||
: requirements
|
: requirements
|
||||||
<warnings>pedantic
|
<warnings>pedantic
|
||||||
<toolset>intel:<warnings>on
|
<toolset>intel:<warnings>on
|
||||||
<toolset>gcc:<cxxflags>"-Wstrict-aliasing -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow"
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
||||||
<toolset>darwin:<cxxflags>"-Wstrict-aliasing -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow"
|
<toolset>darwin:<cxxflags>$(gcc-flags)
|
||||||
<toolset>clang:<cxxflags>"-Wstrict-aliasing -Wsign-promo -Wunused-parameter -Wsign-conversion -Wconversion -Wfloat-equal -Wshadow"
|
<toolset>clang:<cxxflags>$(clang-flags)
|
||||||
<toolset>msvc:<warnings-as-errors>on
|
<toolset>msvc:<warnings-as-errors>on
|
||||||
<toolset>gcc:<warnings-as-errors>on
|
<toolset>gcc:<warnings-as-errors>on
|
||||||
<toolset>clang:<warnings-as-errors>on
|
<toolset>clang:<warnings-as-errors>on
|
||||||
@@ -60,8 +63,6 @@ build-project ../examples ;
|
|||||||
run hash_reference_values.cpp ;
|
run hash_reference_values.cpp ;
|
||||||
|
|
||||||
run detail_is_range_test.cpp ;
|
run detail_is_range_test.cpp ;
|
||||||
run detail_is_range_test2.cpp
|
|
||||||
: : : <toolset>gcc:<cxxflags>-Wno-variadic-macros <toolset>clang:<cxxflags>-Wno-variadic-macros ;
|
|
||||||
run detail_is_contiguous_range_test.cpp ;
|
run detail_is_contiguous_range_test.cpp ;
|
||||||
run detail_is_unordered_range_test.cpp ;
|
run detail_is_unordered_range_test.cpp ;
|
||||||
|
|
||||||
@@ -73,4 +74,5 @@ run hash_number_test2.cpp ;
|
|||||||
run hash_integral_test.cpp ;
|
run hash_integral_test.cpp ;
|
||||||
run hash_string_test2.cpp ;
|
run hash_string_test2.cpp ;
|
||||||
|
|
||||||
run hash_fs_path_test.cpp /boost//filesystem/<warnings>off : : : <toolset>gcc:<cxxflags>-Wno-variadic-macros <toolset>clang:<cxxflags>-Wno-variadic-macros ;
|
run hash_fs_path_test.cpp /boost//filesystem/<warnings>off ;
|
||||||
|
run detail_is_range_test2.cpp ;
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
# pragma warning(disable: 4714) // forceinline not inlined
|
# pragma warning(disable: 4714) // forceinline not inlined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
# pragma clang diagnostic ignored "-Wsign-conversion"
|
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/container_hash/detail/is_range.hpp>
|
#include <boost/container_hash/detail/is_range.hpp>
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
# pragma warning(disable: 4714) // forceinline not inlined
|
# pragma warning(disable: 4714) // forceinline not inlined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
# pragma clang diagnostic ignored "-Wsign-conversion"
|
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/filesystem/path.hpp>
|
#include <boost/filesystem/path.hpp>
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
# pragma GCC diagnostic ignored "-Wconversion"
|
# pragma GCC diagnostic ignored "-Wconversion"
|
||||||
|
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This test checks for collisions in a small range of numbers
|
// This test checks for collisions in a small range of numbers
|
||||||
|
Reference in New Issue
Block a user