emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3547e01: * src/image.c (xpm_image_p): Avoid another compiler warn


From: Eli Zaretskii
Subject: master 3547e01: * src/image.c (xpm_image_p): Avoid another compiler warning.
Date: Thu, 13 May 2021 05:23:40 -0400 (EDT)

branch: master
commit 3547e01d963bf037bd0184f2132ff09885001354
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    * 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 d0fc4ed..d514f97 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 */
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]