Enable -Wpedantic, fix unconditional use of C++14 extension

This commit is contained in:
Martin Hořeňovský
2018-02-05 10:04:18 +01:00
parent 4be81d3588
commit ba6d33fb8c
2 changed files with 13 additions and 7 deletions

View File

@@ -332,7 +332,7 @@ if (BUILD_TESTING AND NOT_SUBPROJECT)
# Add desired warnings
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code )
target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic)
if (CATCH_ENABLE_WERROR)
target_compile_options( SelfTest PRIVATE -Werror)
endif()