From 403d4bc66e46b63c2df04ed9bd13c1447121f458 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 15 Jun 2022 15:18:41 +0000 Subject: [PATCH] FreeBSD: Silence clang unused-but-set-variable Quick and dirty build fix for warnings being treated as errors. Signed-off-by: Ryan Moeller --- module/Makefile.bsd | 1 + 1 file changed, 1 insertion(+) diff --git a/module/Makefile.bsd b/module/Makefile.bsd index dc6cc2b742..6bd78690fa 100644 --- a/module/Makefile.bsd +++ b/module/Makefile.bsd @@ -320,6 +320,7 @@ beforeinstall: CFLAGS.gcc+= -Wno-pointer-to-int-cast +CFLAGS.clang+= ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.lapi.c= -Wno-cast-qual CFLAGS.lcompat.c= -Wno-cast-qual