From 53305372d04b6e9463e22ea996b0d2e6b156fbb6 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 27 Jan 2026 11:01:35 +0800 Subject: [PATCH] ; Avoid warnings when neither GIF nor WebP are supported * src/image.c (gif_clear_image): Render contingent on HAVE_GIF || HAVE_WEBP. --- src/image.c | 4 ++++ 1 file changed, 4 insertions(+) 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] = #endif +#if defined HAVE_GIF || defined HAVE_WEBP + /* Free X resources of GIF image IMG which is used on frame F. Also used by other image types. */ @@ -9665,6 +9667,8 @@ gif_clear_image (struct frame *f, struct image *img) image_clear_image (f, img); } +#endif /* defined HAVE_GIF || defined HAVE_WEBP */ + #if defined (HAVE_GIF) /* Return true if OBJECT is a valid GIF image specification. */