handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
|
||||
# Many warnings caused by vtk
|
||||
if(CMAKE_COMPILER_IS_CLANGXX)
|
||||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-pedantic") # needed for vtk headers
|
||||
add_compile_options(-Wno-pedantic) # needed for vtk headers
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.0)
|
||||
add_compile_options(-Wno-inconsistent-missing-override)
|
||||
endif()
|
||||
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -Wno-pedantic") # needed for vtk headers
|
||||
add_compile_options(-Wno-pedantic) # needed for vtk headers
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
|
||||
# Many warnings caused by vtk
|
||||
if(CMAKE_COMPILER_IS_CLANGXX)
|
||||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-pedantic") # needed for vtk headers
|
||||
add_compile_options(-Wno-pedantic) # needed for vtk headers
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.0)
|
||||
add_compile_options(-Wno-inconsistent-missing-override)
|
||||
endif()
|
||||
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -Wno-pedantic") # needed for vtk headers
|
||||
add_compile_options(-Wno-pedantic) # needed for vtk headers
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
|
||||
Reference in New Issue
Block a user