28 lines
895 B
Diff
28 lines
895 B
Diff
--- CMakeLists.txt 2019-06-13 14:40:04.382931388 +0200
|
|
+++ CMakeLists.txt 2019-06-13 14:40:56.256019689 +0200
|
|
@@ -203,25 +203,6 @@
|
|
endif()
|
|
|
|
|
|
-# Warn about missing override specifiers, if supported
|
|
-if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|
- include(CheckCXXCompilerFlag)
|
|
-
|
|
- CHECK_CXX_COMPILER_FLAG("-Wsuggest-override" COMPILER_SUPPORTS_WSUGGEST_OVERRIDE)
|
|
-
|
|
- if(COMPILER_SUPPORTS_WSUGGEST_OVERRIDE)
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
|
|
- endif()
|
|
-
|
|
- CHECK_CXX_COMPILER_FLAG("-Wvla" COMPILER_SUPPORTS_WVLA)
|
|
-
|
|
- if(COMPILER_SUPPORTS_WVLA)
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=vla")
|
|
- endif()
|
|
-
|
|
-endif()
|
|
-
|
|
-
|
|
# Warn about shadowed variables (-Wshadow option), if supported
|
|
# Unfortunately, the swig autogenerated files have a lot of shadowed variables
|
|
# and -Wno-shadow does not exist.
|