git: 3a9e6624ebef - main - rtw88: Silence unused but set warnings from GCC for debug.c.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 10 Apr 2023 17:43:57 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=3a9e6624ebeff00fb2330606acdcb194504ae05f

commit 3a9e6624ebeff00fb2330606acdcb194504ae05f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-10 17:31:26 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-10 17:31:26 +0000

    rtw88: Silence unused but set warnings from GCC for debug.c.
    
    Reviewed by:    bz
    Differential Revision:  https://reviews.freebsd.org/D39353
---
 sys/modules/rtw88/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/modules/rtw88/Makefile b/sys/modules/rtw88/Makefile
index 2df00358821c..930438a04f2c 100644
--- a/sys/modules/rtw88/Makefile
+++ b/sys/modules/rtw88/Makefile
@@ -40,4 +40,7 @@ CFLAGS+=	${LINUXKPI_INCLUDES}
 CFLAGS+=	-DCONFIG_RTW88_DEBUG
 #CFLAGS+=	-DCONFIG_RTW88_DEBUGFS
 
+# GCC warns about set but unused vaf variables
+CWARNFLAGS.debug.c+= ${NO_WUNUSED_BUT_SET_VARIABLE}
+
 .include <bsd.kmod.mk>