From: Eli Zaretskii Date: Thu, 13 May 2021 09:23:19 +0000 (+0300) Subject: * src/image.c (xpm_image_p): Avoid another compiler warning. X-Git-Tag: emacs-28.0.90~2490 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3547e01d963bf037bd0184f2132ff09885001354;p=emacs.git * src/image.c (xpm_image_p): Avoid another compiler warning. --- 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 */