From 8af9f8a9145fbbf1d5cbb5ab1524ce90bc131ac7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 3 Jan 2022 12:57:20 +0100 Subject: [PATCH] net/frr7: fix build due to -Werror clash during configure Likely caused by llvm update to version 13. configure:9654: checking for the pthreads library -lpthread configure:9692: cc -std=gnu11 -o conftest -O2 -pipe -std=gnu99 -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith - Wbad-function-cast -Wwrite-strings -Wundef -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror -I/usr/local/include -I/usr/local/include -L/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/li b -fstack-protector-strong conftest.c -lpthread >&5 conftest.c:27:51: error: parameter 'a' set but not used [-Werror,-Wunused-but-set-parameter] static void routine(void *a) { a = 0; } 1 error generated. --- net/frr7/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/frr7/Makefile b/net/frr7/Makefile index cd4b803e54d..5264483bda3 100644 --- a/net/frr7/Makefile +++ b/net/frr7/Makefile @@ -83,7 +83,7 @@ VTYSH_DESC= Build integrated vty shell USERS= frr GROUPS= frr frrvty -CPPFLAGS+= -I${LOCALBASE}/include +CPPFLAGS+= -I${LOCALBASE}/include -Wno-error LDFLAGS+= -L${LOCALBASE}/lib # PIM compile but didn't work on FreeBSD