]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/image.c: Avoid compiler warnings in Cairo builds without XPM.
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 May 2021 09:17:44 +0000 (12:17 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 May 2021 09:17:44 +0000 (12:17 +0300)
src/image.c

index f2fb69ab743949c5d64fa783c95b7242666c62d8..d0fc4ed741bfa2c7956feb0c4121906becc8b3f5 100644 (file)
@@ -4706,10 +4706,11 @@ xpm_load (struct frame *f, struct image *img)
 
 #endif /* HAVE_XPM && !USE_CAIRO */
 
-#if defined USE_CAIRO || (defined HAVE_NS && !defined HAVE_XPM)
+#if (defined USE_CAIRO && defined HAVE_XPM)    \
+  || (defined HAVE_NS && !defined HAVE_XPM)
 
-/* XPM support functions for NS where libxpm is not available.
-   Only XPM version 3 (without any extensions) is supported.  */
+/* XPM support functions for NS where libxpm is not available, and for
+   Cairo.  Only XPM version 3 (without any extensions) is supported.  */
 
 static void xpm_put_color_table_v (Lisp_Object, const char *,
                                    int, Lisp_Object);