handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi

This commit is contained in:
wmayer
2019-11-18 11:56:08 +01:00
parent a5019828cf
commit 71dae0e639
10 changed files with 161 additions and 138 deletions

View File

@@ -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)

View File

@@ -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)