git: 11f154ca86a0 - stable/14 - linuxkpi: Annotate an unused variable as such
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Apr 2024 18:41:27 UTC
The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=11f154ca86a007eefc5212e27e31ad0ff65a884e commit 11f154ca86a007eefc5212e27e31ad0ff65a884e Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-12-27 15:11:33 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2024-04-15 18:00:35 +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 (cherry picked from commit 344a04ad2c5e62b2905bc2f8b6f992ae590403fd) --- 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'; \ }