testing/pulsar-client-cpp: disable werror

This commit is contained in:
psykose 2022-08-12 01:20:13 +00:00
parent 789d450e32
commit 88b23c54cc
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View File

@ -25,7 +25,9 @@ makedepends="
snappy-dev
zstd-dev
"
source="apache-pulsar-$pkgver-src.tar.gz::https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-$pkgver/apache-pulsar-$pkgver-src.tar.gz"
source="apache-pulsar-$pkgver-src.tar.gz::https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-$pkgver/apache-pulsar-$pkgver-src.tar.gz
no-werror.patch
"
builddir="$srcdir/apache-pulsar-$pkgver-src/pulsar-client-cpp"
build() {
@ -61,4 +63,5 @@ _py3() {
sha512sums="
19c078f65b9105728adda3926a9a1527d6498f0e2337d37497a6d965a38acf94e217e58939bc5b0a8b8166511ae9ee176ee3d0c764d4777e285b7bcaeb2731e1 apache-pulsar-2.10.1-src.tar.gz
5ff3c7354530d933982e1d90769363001eeeff63f71fc2ae455f623f4cd0754422ce05b1a10be7e22edad020981a0f48a976f4949819760cb8de7bb09c4e50bc no-werror.patch
"

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4fd1808..9fc8e75 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,7 +94,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# ?? Don't have this to test with
else() # GCC or Clang are mostly compatible:
# Turn on warnings and enable warnings-as-errors:
- add_compile_options(-Wall -Wformat-security -Wvla -Werror)
+ add_compile_options(-Wall -Wformat-security -Wvla)
# Turn off certain warnings that are too much pain for too little gain:
add_compile_options(-Wno-sign-compare -Wno-deprecated-declarations -Wno-error=cpp)
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR APPLE)