aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2026-01-27 11:01:35 +0800
committerPo Lu2026-01-27 11:01:35 +0800
commit53305372d04b6e9463e22ea996b0d2e6b156fbb6 (patch)
tree036c43eed3846e0d9001e62bdfc0d0263ac14be6 /src
parentb224605d305f71c798877c4228afe18ded7a39ef (diff)
downloademacs-53305372d04b6e9463e22ea996b0d2e6b156fbb6.tar.gz
emacs-53305372d04b6e9463e22ea996b0d2e6b156fbb6.zip
; Avoid warnings when neither GIF nor WebP are supported
* src/image.c (gif_clear_image): Render contingent on HAVE_GIF || HAVE_WEBP.
Diffstat (limited to 'src')
-rw-r--r--src/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 119287db899..5a4bc3024c3 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9655,6 +9655,8 @@ static const struct image_keyword gif_format[GIF_LAST] =
9655 9655
9656#endif 9656#endif
9657 9657
9658#if defined HAVE_GIF || defined HAVE_WEBP
9659
9658/* Free X resources of GIF image IMG which is used on frame F. 9660/* Free X resources of GIF image IMG which is used on frame F.
9659 Also used by other image types. */ 9661 Also used by other image types. */
9660 9662
@@ -9665,6 +9667,8 @@ gif_clear_image (struct frame *f, struct image *img)
9665 image_clear_image (f, img); 9667 image_clear_image (f, img);
9666} 9668}
9667 9669
9670#endif /* defined HAVE_GIF || defined HAVE_WEBP */
9671
9668#if defined (HAVE_GIF) 9672#if defined (HAVE_GIF)
9669 9673
9670/* Return true if OBJECT is a valid GIF image specification. */ 9674/* Return true if OBJECT is a valid GIF image specification. */