Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2023 15:15:01 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 344a04ad2c5e - main - linuxkpi: Annotate an unused variable as such
Message-ID:  <202312271515.3BRFF1AQ047606@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=344a04ad2c5e62b2905bc2f8b6f992ae590403fd

commit 344a04ad2c5e62b2905bc2f8b6f992ae590403fd
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-12-27 15:11:33 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-12-27 15:11:33 +0000

    linuxkpi: Annotate an unused variable as such
    
    This addresses a -Wunused-but-set-variable warning in the gcc builds.
    
    No functional change intended.
    
    Reported by:    Jenkins
---
 sys/compat/linuxkpi/common/include/linux/build_bug.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/build_bug.h b/sys/compat/linuxkpi/common/include/linux/build_bug.h
index 59d1fc228afc..6a026376cfc8 100644
--- a/sys/compat/linuxkpi/common/include/linux/build_bug.h
+++ b/sys/compat/linuxkpi/common/include/linux/build_bug.h
@@ -48,7 +48,7 @@
 #define	_O__CTASSERT(x, y)	_O___CTASSERT(x, y)
 #define	_O___CTASSERT(x, y)	while (0) { \
     typedef char __assert_line_ ## y[(x) ? 1 : -1]; \
-    __assert_line_ ## y _x; \
+    __assert_line_ ## y _x __unused; \
     _x[0] = '\0'; \
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312271515.3BRFF1AQ047606>