void-packages/srcpkgs/kicad/patches/disable-warnings.patch

22 lines
720 B
Diff
Raw Normal View History

2018-07-19 16:18:58 +02:00
--- CMakeLists.txt 2018-08-28 03:25:23.249861345 +0200
+++ CMakeLists.txt 2018-08-28 03:25:43.136716748 +0200
@@ -188,18 +188,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()
-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.