diff options
author | Rechi <Rechi@users.noreply.github.com> | 2023-02-19 17:48:28 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2023-02-19 17:48:28 +0100 |
commit | cbce3db7cd910bb6944be55f9f784a5d88513740 (patch) | |
tree | 9b56b2039820ac54fbafc623b010c6493cff1e4a | |
parent | 1022a8bb5cc6dbb1532c4986e9bb0ed868d3a2af (diff) |
[cmake] drop disabling compiler warnings
-rw-r--r-- | cmake/scripts/common/ArchSetup.cmake | 11 | ||||
-rw-r--r-- | 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() |