From 3547e01d963bf037bd0184f2132ff09885001354 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 13 May 2021 12:23:19 +0300 Subject: [PATCH] * src/image.c (xpm_image_p): Avoid another compiler warning. --- src/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/image.c b/src/image.c index d0fc4ed741b..d514f9713e1 100644 --- a/src/image.c +++ b/src/image.c @@ -4322,6 +4322,7 @@ xpm_valid_color_symbols_p (Lisp_Object color_symbols) } +#if defined HAVE_XPM || defined HAVE_NS /* Value is true if OBJECT is a valid XPM image specification. */ static bool @@ -4337,6 +4338,7 @@ xpm_image_p (Lisp_Object object) && (! fmt[XPM_COLOR_SYMBOLS].count || xpm_valid_color_symbols_p (fmt[XPM_COLOR_SYMBOLS].value))); } +#endif /* HAVE_XPM || HAVE_NS */ #endif /* HAVE_XPM || USE_CAIRO || HAVE_NS */ -- 2.39.5