[education/labplot] src: [scripting] suppress some of compiler warnigns for shiboken-generated code.
Alexander Semke <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit d3e86a3b232854d58ac599e6646b5ae7573f09b1 by Alexander Semke.
Committed on 06/08/2026 at 18:04.
Pushed by asemke into branch 'master'.
[scripting] suppress some of compiler warnigns for shiboken-generated code.
M +5 -0 src/CMakeLists.txt
https://invent.kde.org/education/labplot/-/commit/d3e86a3b232854d58ac599e6646b5ae7573f09b1
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0e8a1cdd05..5573203272 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -522,6 +522,11 @@ if(ENABLE_PYTHON_SCRIPTING)
# the PCH built for labplot_core_obj. Skip PCH for those files only.
set_source_files_properties(${shiboken_scripting_generated_sources} ${python_scripting_backend_sources}
PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
+ # Suppress shiboken-generated code warnings
+ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
+ set_source_files_properties(${shiboken_scripting_generated_sources}
+ PROPERTIES COMPILE_FLAGS "-Wno-keyword-macro -Wno-shadow")
+ endif()
endif()
if(Qt${QT_VERSION_MAJOR}Mqtt_FOUND)