From 5cac287617b9702571a038a9063028e82f38af68 Mon Sep 17 00:00:00 2001 From: t0b3 Date: Mon, 25 Nov 2024 21:03:32 +0100 Subject: [PATCH] ci: omit compiler warning on deprecated declarations clang v18 warns about ... src/core/painting/qgsmaskpaintdevice.h:36:5: note: 'QgsMaskPaintEngine' has been explicitly marked deprecated here Q_DECL_DEPRECATED QgsMaskPaintEngine( bool usePathStroker = false ); ... while still being used in src/core/painting/qgsmaskpaintdevice.cpp:65:23: note: in instantiation of function template specialization 'std::make_unique' requested here mPaintEngine = std::make_unique( usePathStroker ); --- src/core/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index f0236b7b879a..43fccea9542e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -2198,6 +2198,11 @@ else() endif() endif() +# Workaround CLANG deprecation warning +if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") + set_source_files_properties(painting/qgsmaskpaintdevice.cpp PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations") +endif() + # Generate cpp+header file from .proto file using "protoc" tool (to support MVT encoding of vector tiles) protobuf_generate_cpp(VECTOR_TILE_PROTO_SRCS VECTOR_TILE_PROTO_HDRS vectortile/vector_tile.proto) set(QGIS_CORE_SRCS ${QGIS_CORE_SRCS} ${VECTOR_TILE_PROTO_SRCS})