; Avoid warnings when neither GIF nor WebP are supported

* src/image.c (gif_clear_image): Render contingent on HAVE_GIF
|| HAVE_WEBP.
This commit is contained in:
Po Lu 2026-01-27 11:01:35 +08:00
parent b224605d30
commit 53305372d0

View file

@ -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. */