From ba4de7476897265ed11e736fcbafe83db76ff33b Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 24 Sep 2023 08:33:17 +0000 Subject: [PATCH] disable -Werror; forgot to cvs add; thanks tb --- archivers/snappy/patches/patch-CMakeLists_txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 archivers/snappy/patches/patch-CMakeLists_txt diff --git a/archivers/snappy/patches/patch-CMakeLists_txt b/archivers/snappy/patches/patch-CMakeLists_txt new file mode 100644 index 00000000000..cd2263d0848 --- /dev/null +++ b/archivers/snappy/patches/patch-CMakeLists_txt @@ -0,0 +1,14 @@ +omit -Werror (when clang is used) + +Index: CMakeLists.txt +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -69,7 +69,7 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + # Use -Werror for clang only. + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") ++ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") + endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") + endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") +