git: 1e80d4b18897 - main - xo: Disable -Wunused-but-set-variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Jun 2023 17:19:46 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=1e80d4b18897a8c3ff32291d970077aa7174ab96

commit 1e80d4b18897a8c3ff32291d970077aa7174ab96
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-27 17:19:32 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-27 17:19:32 +0000

    xo: Disable -Wunused-but-set-variable.
    
    Presumably these warnings will be fixed upstream at some point.
    
    contrib/libxo/xo/xo.c:99:9: error: variable 'hflag' set but not used [-Werror,-Wunused-but-set-variable]
        int hflag = 0, jflag = 0, tflag = 0,
            ^
    contrib/libxo/xo/xo.c:99:20: error: variable 'jflag' set but not used [-Werror,-Wunused-but-set-variable]
        int hflag = 0, jflag = 0, tflag = 0,
                       ^
    contrib/libxo/xo/xo.c:99:31: error: variable 'tflag' set but not used [-Werror,-Wunused-but-set-variable]
        int hflag = 0, jflag = 0, tflag = 0,
                                  ^
    contrib/libxo/xo/xo.c:100:2: error: variable 'zflag' set but not used [-Werror,-Wunused-but-set-variable]
            zflag = 0, qflag = 0, star1 = 0, star2 = 0;
            ^
    contrib/libxo/xo/xo.c:100:13: error: variable 'qflag' set but not used [-Werror,-Wunused-but-set-variable]
            zflag = 0, qflag = 0, star1 = 0, star2 = 0;
                       ^
    
    Reviewed by:    sjg
    Differential Revision:  https://reviews.freebsd.org/D40668
---
 usr.bin/xo/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.bin/xo/Makefile b/usr.bin/xo/Makefile
index 5cc36ab95dd9..2a98c10c7114 100644
--- a/usr.bin/xo/Makefile
+++ b/usr.bin/xo/Makefile
@@ -22,3 +22,5 @@ HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 
 .include <bsd.prog.mk>
+
+CWARNFLAGS+=	${NO_WUNUSED_BUT_SET_VARIABLE}