mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
nlbwmon: add pending PR to fix GCC16 builds
Add pending https://github.com/jow-/nlbwmon/pull/75 This is needed for: https://github.com/openwrt/openwrt/pull/23194 Signed-off-by: John Audia <therealgraysky@proton.me>
This commit is contained in:
committed by
Josef Schlehofer
parent
1d43d7b66e
commit
633cd89a22
@@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nlbwmon
|
PKG_NAME:=nlbwmon
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
|
PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
From 7af6798a218737db7efc46dd4b9ae74b4c6a48f8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Audia <therealgraysky@proton.me>
|
||||||
|
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 <therealgraysky@proton.me>
|
||||||
|
---
|
||||||
|
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);
|
||||||
Reference in New Issue
Block a user