mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-29 07:32:23 +00:00
less pedantic
This commit is contained in:
@@ -39,14 +39,14 @@ endif()
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
add_compile_options(-D_SCL_SECURE_NO_WARNINGS)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-Wall -Wextra -pedantic)
|
||||
add_compile_options(-Wall -Wextra)
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6)
|
||||
# -fpermissive needed for cpp_int in gcc-6
|
||||
# -Wno-noexcept-type to silence warnings related to Boost.Python
|
||||
add_compile_options(-fpermissive -Wno-noexcept-type)
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-Wall -Wextra -pedantic -D__STRICT_ANSI__)
|
||||
add_compile_options(-Wall -Wextra -D__STRICT_ANSI__)
|
||||
endif()
|
||||
|
||||
if(TRACE_ALLOCS)
|
||||
|
||||
Reference in New Issue
Block a user