diff mbox series

[meta-oe,122/128] redis-plus-plus: relax -Werror=maybe-uninitialized for GCC 16

Message ID 20260628162222.4081517-22-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj June 28, 2026, 4:22 p.m. UTC
GCC 16 emits a spurious -Wmaybe-uninitialized for the exception helper
constructors in reply.h, and the project builds with -Werror:

  src/sw/redis++/reply.h:54:60: error: '<unknown>' may be used uninitialized
  [-Werror=maybe-uninitialized]
  cc1plus: all warnings being treated as errors

Add -Wno-error=maybe-uninitialized for the gcc toolchain.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../redis-plus-plus/redis-plus-plus_1.3.15.bb                 | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/redis-plus-plus/redis-plus-plus_1.3.15.bb b/meta-oe/recipes-extended/redis-plus-plus/redis-plus-plus_1.3.15.bb
index 1f4b05cbac..b4ab0697a6 100644
--- a/meta-oe/recipes-extended/redis-plus-plus/redis-plus-plus_1.3.15.bb
+++ b/meta-oe/recipes-extended/redis-plus-plus/redis-plus-plus_1.3.15.bb
@@ -13,6 +13,10 @@  SRCREV = "a63ac43bf192772910b52e27cd2b42a6098a0071"
 
 inherit cmake
 
+# GCC 16 reports a spurious -Wmaybe-uninitialized in the exception helper
+# constructors (reply.h); the project builds with -Werror.
+CXXFLAGS:append:toolchain-gcc = " -Wno-error=maybe-uninitialized"
+
 # if ssl is enabled for redis-plus-plus it must also be enabled for hiredis
 PACKAGECONFIG ??= "ssl"
 PACKAGECONFIG[ssl] = "-DREDIS_PLUS_PLUS_USE_TLS=ON, -DREDIS_PLUS_PLUS_USE_TLS=OFF, openssl"