git: 19008cdf7bef - main - gsb_crc32.c: avoid gcc -Wunused-const-variable in user build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jul 2024 19:15:09 UTC
The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=19008cdf7befe5351b9118174432d107e0c39431 commit 19008cdf7befe5351b9118174432d107e0c39431 Author: Ryan Libby <rlibby@FreeBSD.org> AuthorDate: 2024-07-02 19:12:22 +0000 Commit: Ryan Libby <rlibby@FreeBSD.org> CommitDate: 2024-07-02 19:12:22 +0000 gsb_crc32.c: avoid gcc -Wunused-const-variable in user build Fixup after 56e9a0136f87 gsb_crc32: Fix a warning when compiled in userland. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45824 --- sys/libkern/gsb_crc32.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/libkern/gsb_crc32.c b/sys/libkern/gsb_crc32.c index 58bd3e720278..8cfee97d8d55 100644 --- a/sys/libkern/gsb_crc32.c +++ b/sys/libkern/gsb_crc32.c @@ -59,11 +59,7 @@ #include <machine/armreg.h> #include <machine/ifunc.h> #endif -#endif /* _KERNEL */ -#ifndef _KERNEL -static -#endif const uint32_t crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, @@ -128,6 +124,7 @@ const uint32_t crc32_tab[] = { * return crc ^ ~0U; * } */ +#endif /* _KERNEL */ /* CRC32C routines, these use a different polynomial */ /*****************************************************************/