0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 22:47:51 +00:00
termux-packages/packages/gdal/cmake-helpers-GdalCompilationFlags.cmake.patch
2024-11-07 15:17:13 +05:30

19 lines
968 B
Diff

Avoid -Wdocumentation clang flag which causes a clang crash.
Will be fixed in NDK r27c: https://github.com/android/ndk/issues/2070
--- a/cmake/helpers/GdalCompilationFlags.cmake
+++ b/cmake/helpers/GdalCompilationFlags.cmake
@@ -109,11 +109,6 @@
detect_and_set_cxx_warning_flag(extra-semi)
detect_and_set_c_and_cxx_warning_flag(comma)
detect_and_set_c_and_cxx_warning_flag(float-conversion)
- check_c_compiler_flag("-Wdocumentation -Wno-documentation-deprecated-sync" HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED)
- if (HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED)
- set(GDAL_C_WARNING_FLAGS ${GDAL_C_WARNING_FLAGS} -Wdocumentation -Wno-documentation-deprecated-sync)
- set(GDAL_CXX_WARNING_FLAGS ${GDAL_CXX_WARNING_FLAGS} -Wdocumentation -Wno-documentation-deprecated-sync)
- endif ()
detect_and_set_cxx_warning_flag(unused-private-field)
detect_and_set_cxx_warning_flag(non-virtual-dtor)
detect_and_set_cxx_warning_flag(overloaded-virtual)