git: 344a04ad2c5e - main - linuxkpi: Annotate an unused variable as such
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Dec 2023 15:15:01 UTC
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'; \
}