[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/7] xzembed: Silence warning when no BCJ is available
From: |
Vladimir Serbinenko |
Subject: |
[PATCH v2 3/7] xzembed: Silence warning when no BCJ is available |
Date: |
Tue, 3 Sep 2024 20:58:48 +0300 |
BCJ is not available for all platforms hence arguments may end up unused
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
grub-core/lib/xzembed/xz_dec_bcj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/lib/xzembed/xz_dec_bcj.c
b/grub-core/lib/xzembed/xz_dec_bcj.c
index bf6b5862e..aef4638d4 100644
--- a/grub-core/lib/xzembed/xz_dec_bcj.c
+++ b/grub-core/lib/xzembed/xz_dec_bcj.c
@@ -353,7 +353,7 @@ static noinline_for_stack size_t bcj_sparc(
* avoid pointers to static data (at least on x86).
*/
static void bcj_apply(struct xz_dec_bcj *s,
- uint8_t *buf, size_t *pos, size_t size)
+ uint8_t *buf __attribute__((unused)), size_t *pos, size_t
size __attribute__((unused)))
{
size_t filtered;
--
2.39.2
- [PATCH v2 1/7] configure: Look for .otf fonts, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 2/7] erofs: Replace 64-bit modulo with bitwise operations, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 3/7] xzembed: Silence warning when no BCJ is available,
Vladimir Serbinenko <=
- [PATCH v2 5/7] gentpl: Put startup_raw.S into beginning of the image, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 7/7] mkimage: Explicitly move modules to __bss_start, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 6/7] offsets: Set mod_align to 4 on mips, Vladimir Serbinenko, 2024/09/03
- [PATCH v2 4/7] configure: Add -mno-gpopt option, Vladimir Serbinenko, 2024/09/03