From cbce3db7cd910bb6944be55f9f784a5d88513740 Mon Sep 17 00:00:00 2001 From: Rechi Date: Sun, 19 Feb 2023 17:48:28 +0100 Subject: [cmake] drop disabling compiler warnings --- cmake/scripts/common/ArchSetup.cmake | 11 ----------- xbmc/interfaces/swig/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake index a59fcb52f7..a83d2ae198 100644 --- a/cmake/scripts/common/ArchSetup.cmake +++ b/cmake/scripts/common/ArchSetup.cmake @@ -167,17 +167,6 @@ if(NOT MSVC) -Wno-unused-parameter # from -Wextra ) - if(CMAKE_COMPILER_IS_GNUCXX) - add_options(ALL_LANGUAGES ALL_BUILDS - -Wno-cast-function-type # from -Wextra - ) - elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_options(ALL_LANGUAGES ALL_BUILDS - -Wno-bad-function-cast - -Wno-deprecated - ) - endif() - add_options(CXX ALL_BUILDS -Wnon-virtual-dtor ) diff --git a/xbmc/interfaces/swig/CMakeLists.txt b/xbmc/interfaces/swig/CMakeLists.txt index c8d590e2bb..b1748fd87a 100644 --- a/xbmc/interfaces/swig/CMakeLists.txt +++ b/xbmc/interfaces/swig/CMakeLists.txt @@ -63,3 +63,7 @@ add_dependencies(python_binding ${GLOBAL_TARGET_DEPS}) if(CORE_SYSTEM_NAME STREQUAL windowsstore) set_target_properties(python_binding PROPERTIES STATIC_LIBRARY_FLAGS "/ignore:4264") endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) + set_target_properties(python_binding PROPERTIES + COMPILE_FLAGS -Wno-cast-function-type) # from -Wextra +endif() -- cgit v1.2.3