We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5423549 commit b97e624Copy full SHA for b97e624
CMakeLists.txt
@@ -97,10 +97,11 @@ endif( MSVC )
97
98
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
99
# using regular Clang or AppleClang
100
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wshadow -Wshorten-64-to-32")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror -Wall -Wshadow -Wshorten-64-to-32")
101
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
102
# using GCC
103
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wshadow -Wextra -pedantic -Wno-long-long")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wshadow -Wextra -pedantic -Wno-long-long")
104
+ # not yet ready for -Wconversion
105
endif()
106
107
IF(JSONCPP_WITH_WARNING_AS_ERROR)
0 commit comments