Skip to content

Commit

Permalink
add -Wold-style-casts see USCiLab#363
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Nov 28, 2016
1 parent f69ad7c commit 507f97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else()
endif()

if(NOT MSVC)
set(CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic -Wold-style-cast ${CMAKE_CXX_FLAGS}")
option(WITH_WERROR "Compile with '-Werror' C++ compiler flag" ON)
if(WITH_WERROR)
set(CMAKE_CXX_FLAGS "-Werror ${CMAKE_CXX_FLAGS}")
Expand Down

0 comments on commit 507f97d

Please sign in to comment.