Files
gentoo/net-proxy/shadowsocks-libev/files/shadowsocks-libev-3.3.6-werror.patch
Yixun Lan abab34be75 net-proxy/shadowsocks-libev: doc and Werror fix
guard documentation file installation with USE=doc
drop hard-coded -Werror flag

Closes: https://bugs.gentoo.org/981256
Closes: https://bugs.gentoo.org/981257
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2026-08-23 01:10:10 +00:00

28 lines
1.2 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52ff13e..15f0551 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ include(GNUInstallDirs)
# Note: -Werror is applied per-target in src/CMakeLists.txt to avoid
# breaking bundled submodules (libcork, libipset, libbloom)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -D_GNU_SOURCE")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -Wno-deprecated-declarations -fno-strict-aliasing")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -Wno-discarded-qualifiers -Wno-deprecated-declarations -fno-strict-aliasing")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 80503cb..08bd33e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -84,9 +84,6 @@ set(SS_REDIR_SOURCE
${SS_PLUGIN_SOURCE}
)
-# Apply -Werror only to project sources (not bundled submodules)
-set(SS_WERROR_FLAGS -Werror)
-
# Include directories from Find modules
# MbedTLS must come first to avoid conflicts with other mbedtls versions
# that may be in /opt/homebrew/include (e.g. mbedtls 4.x vs 3.x)