mirror of
https://github.com/RPCS3/cereal.git
synced 2024-11-30 06:30:34 +00:00
add -Wold-style-casts see #363
This commit is contained in:
parent
f69ad7cd9e
commit
507f97d3ad
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user