diff --git a/net/nlbwmon/Makefile b/net/nlbwmon/Makefile index 1e03a23a54..bcc17bfe37 100644 --- a/net/nlbwmon/Makefile +++ b/net/nlbwmon/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nlbwmon -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git diff --git a/net/nlbwmon/patches/020-fix-discarded-qualifiers-warning-with-GCC-16.patch b/net/nlbwmon/patches/020-fix-discarded-qualifiers-warning-with-GCC-16.patch new file mode 100644 index 0000000000..65034de1d8 --- /dev/null +++ b/net/nlbwmon/patches/020-fix-discarded-qualifiers-warning-with-GCC-16.patch @@ -0,0 +1,25 @@ +From 7af6798a218737db7efc46dd4b9ae74b4c6a48f8 Mon Sep 17 00:00:00 2001 +From: John Audia +Date: Tue, 26 May 2026 09:22:30 -0400 +Subject: [PATCH] fix discarded-qualifiers warning with GCC 16 + +strchr() returns char * even when passed a const char *, a known +C standard wart. Explicitly cast the return value to char * to +satisfy -Werror=discarded-qualifiers + +Signed-off-by: John Audia +--- + subnets.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/subnets.c ++++ b/subnets.c +@@ -36,7 +36,7 @@ parse_subnet(const char *addr, struct su + unsigned long int n; + uint8_t i, b; + +- mask = strchr(addr, '/'); ++ mask = (char *)strchr(addr, '/'); + + if (mask) + memcpy(tmp, addr, mask++ - addr);