Skip to content

Commit

Permalink
ci: omit compiler warning on deprecated declarations
Browse files Browse the repository at this point in the history
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<QgsMaskPaintEngine, bool &>' requested here
mPaintEngine = std::make_unique<QgsMaskPaintEngine>( usePathStroker );
  • Loading branch information
t0b3 committed Dec 6, 2024
1 parent 69bca4f commit 5cac287
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 5cac287

Please sign in to comment.