Revert a cmake change in protobuf_cmake.patch (#20964)

Avoid patching external projects unless absolutely necessary
#20875
This commit is contained in:
Changming Sun 2024-06-10 11:20:33 -07:00 committed by GitHub
parent 007d106b73
commit 92ae60b01f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04cb3303a..4025805cf 100644
index 04cb3303a..c023001de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -249,9 +249,7 @@ if (MSVC)
@ -20,12 +20,11 @@ index 04cb3303a..4025805cf 100644
)
# Allow big object
add_definitions(/bigobj)
@@ -289,7 +286,7 @@ if (MSVC)
@@ -289,7 +286,6 @@ if (MSVC)
else (MSVC)
# No version.rc file.
set(protobuf_version_rc_file)
-
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
# When building with "make", "lib" prefix will be added automatically by
# the build tool.
set(LIB_PREFIX)