2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-01-19 04:22:12 +00:00

Supress long-long warning

This commit is contained in:
Alexander Grund
2020-01-02 19:19:53 +01:00
parent df923c7bc0
commit 1eefeed7eb
2 changed files with 7 additions and 6 deletions

View File

@@ -15,11 +15,7 @@ function(boost_add_warnings target level)
message(FATAL_ERROR "${level} is not a valid warning level (${allowed_levels})")
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(APPLE)
set(supression -Wno-long-long)
else()
set(supression "")
endif()
set(supression -Wno-long-long)
set(warn_off -w)
set(warn_on -Wall ${supression})
set(warn_all -Wall ${supression})

View File

@@ -11,7 +11,12 @@ import testing ;
project : requirements
<warnings>pedantic
<warnings-as-errors>on ;
<warnings-as-errors>on
<toolset>gcc:<cxxflags>-Wno-long-long
<toolset>darwin:<cxxflags>-Wno-long-long
<toolset>pathscale:<cxxflags>-Wno-long-long
<toolset>clang:<cxxflags>-Wno-long-long
;
lib shell32 ;