]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
lib/xzembed/xz_dec_bcj: Silence warning when no BCJ is available
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 3 Sep 2024 17:58:48 +0000 (20:58 +0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 5 Sep 2024 15:12:06 +0000 (17:12 +0200)
BCJ is not available for all platforms hence arguments may end up unused.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/xzembed/xz_dec_bcj.c

index bf6b5862e47e72c96a3de614bb3135134b377ee5..aef4638d4b9ad0e1e05cadfacef00affb410e2ed 100644 (file)
@@ -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;