git: 6bd02a1d26a8 - 2026Q3 - net/nfstrace: Fix build with json-c 0.19

Emanuel Haupt <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch 2026Q3 has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bd02a1d26a86a736ff6991d5d5204f90827b9f0

commit 6bd02a1d26a86a736ff6991d5d5204f90827b9f0
Author:     Emanuel Haupt <[email protected]>
AuthorDate: 2026-07-11 10:58:43 +0000
Commit:     Emanuel Haupt <[email protected]>
CommitDate: 2026-07-31 21:25:31 +0000

    net/nfstrace: Fix build with json-c 0.19
    
    json-c 0.19 added static inline accessors to <json-c/linkhash.h>,
    which trigger -Wunused-function when building the bundled JSON
    analyzer with -Werror.
    
    Suppress the warning by adding -Wno-unused-function to CFLAGS.
    
    Reported by:    olgeni
    Differential Revision: https://reviews.freebsd.org/D58135
    
    (cherry picked from commit b58cd2fcc0590122badd493a528ff9b897b51d93)
---
 net/nfstrace/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/nfstrace/Makefile b/net/nfstrace/Makefile
index cf6266fc4ab2..4682d02e7ce3 100644
--- a/net/nfstrace/Makefile
+++ b/net/nfstrace/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	nfstrace
 DISTVERSION=	0.4.3.2
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net
 
 MAINTAINER=	[email protected]
@@ -17,7 +17,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	epam
 
 CMAKE_ARGS+=	-DJSON_INCLUDE_DIR="${LOCALBASE}/include/json-c"
-CFLAGS+=	-Wno-deprecated-copy -Wno-format
+CFLAGS+=	-Wno-deprecated-copy -Wno-format -Wno-unused-function
 
 .include <bsd.port.options.mk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.