Skip to content

Commit

Permalink
remove werror hunk from snappy patch
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Oct 4, 2023
1 parent b5239d1 commit e6a127e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cpp/cmake_modules/snappy.diff
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3062e2..d946037 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,13 +66,6 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")

- # 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")
- endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
- endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-
# Disable C++ exceptions.
string(REGEX REPLACE "-fexceptions" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
diff --git a/snappy.cc b/snappy.cc
index d414718..5b0d0d6 100644
--- a/snappy.cc
Expand Down

0 comments on commit e6a127e

Please sign in to comment.