Commit f452f918 authored by jcfr's avatar jcfr
Browse files

COMP: Do not use C/CXX flag: -Wold-style-cast

Compiler is way to verbose.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15183 3bd1e089-480b-0410-8dfb-8563597acbee
parent 40b3d3ff
......@@ -187,9 +187,10 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
# suppress warnings about auto imported symbols
SET(Slicer_CXX_FLAGS "-Wl,--enable-auto-import ${Slicer_CXX_FLAGS}")
ENDIF()
# Note: -Wold-style-cast is too verbose
SET(Slicer_C_FLAGS "${cflags} ${Slicer_C_FLAGS}")
SET(Slicer_CXX_FLAGS "${cflags} -Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel -Wsign-promo ${Slicer_CXX_FLAGS}")
SET(Slicer_CXX_FLAGS "${cflags} -Wsign-promo -Woverloaded-virtual -Wstrict-null-sentinel ${Slicer_CXX_FLAGS}")
ENDIF()
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment