Files
buildroot/package/redis-plus-plus/redis-plus-plus.mk
Bernd Kuhls e4ac5015b9 package/redis-plus-plus: disable -Werror
Fixes build error with gcc 16.x:

output/build/redis-plus-plus-1.3.15/src/sw/redis++/reply.h:
 In constructor 'sw::redis::ParseError::ParseError(const std::string&,
 const redisReply&)':
output/build/redis-plus-plus-1.3.15/src/sw/redis++/reply.h:54:60: error:
 '<unknown>' may be used uninitialized [-Werror=maybe-uninitialized]
   54 | const redisReply &reply) : ProtoError(_err_info(expect_type, reply)) {}
      |                                       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-05-30 15:48:42 +02:00

34 lines
1.1 KiB
Makefile

################################################################################
#
# redis-plus-plus
#
################################################################################
REDIS_PLUS_PLUS_VERSION = 1.3.15
REDIS_PLUS_PLUS_SITE = $(call github,sewenew,redis-plus-plus,$(REDIS_PLUS_PLUS_VERSION))
REDIS_PLUS_PLUS_LICENSE = Apache-2.0
REDIS_PLUS_PLUS_LICENSE_FILES = LICENSE
REDIS_PLUS_PLUS_INSTALL_STAGING = YES
REDIS_PLUS_PLUS_DEPENDENCIES = hiredis
define REDIS_PLUS_PLUS_NO_WERROR
$(SED) 's/"-Werror"//' $(@D)/CMakeLists.txt
endef
REDIS_PLUS_PLUS_POST_PATCH_HOOKS += REDIS_PLUS_PLUS_NO_WERROR
REDIS_PLUS_PLUS_CONF_OPTS = \
-DREDIS_PLUS_PLUS_BUILD_SHARED=$(if $(BR2_STATIC_LIBS),OFF,ON) \
-DREDIS_PLUS_PLUS_BUILD_TEST=OFF
# since version 1.3.0, by default, redis-plus-plus is built with the
# -std=c++17 standard
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),)
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=14
else
REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=11
endif
endif
$(eval $(cmake-package))