Skip to content

Commit

Permalink
move patch so that it actually gets applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Aug 28, 2024
1 parent 73c4242 commit 3e04016
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
11 changes: 0 additions & 11 deletions deps/patches/gcc_warn.patch

This file was deleted.

11 changes: 0 additions & 11 deletions deps/patches/gcc_warn_wasm.patch

This file was deleted.

11 changes: 11 additions & 0 deletions deps/patches/proj.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- CMakeLists.txt 2024-08-28 12:32:22
+++ CMakeLists.txt 2024-08-28 12:32:42
@@ -54,7 +54,7 @@
-Wswitch
-Wunused-parameter
)
-if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
+if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
set(PROJ_common_WARN_FLAGS ${PROJ_common_WARN_FLAGS}
-Wduplicated-cond
-Wduplicated-branches

0 comments on commit 3e04016

Please sign in to comment.