From 517c704a6360356e62752f581c71b38a479e2f59 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Fri, 9 Jun 2017 01:27:39 +0200 Subject: [PATCH] Fix another compiler warning on macOS * src/image.c (x_query_frame_background_color): Don't define if we have NextStep but no image support. --- src/image.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/image.c b/src/image.c index 3ebf469e8b3..429777ce511 100644 --- a/src/image.c +++ b/src/image.c @@ -1269,8 +1269,7 @@ image_background_transparent (struct image *img, struct frame *f, XImagePtr_or_D return img->background_transparent; } -#if defined (HAVE_PNG) || defined (HAVE_NS) \ - || defined (HAVE_IMAGEMAGICK) || defined (HAVE_RSVG) +#if defined (HAVE_PNG) || defined (HAVE_IMAGEMAGICK) || defined (HAVE_RSVG) /* Store F's background color into *BGCOLOR. */ static void @@ -1284,7 +1283,7 @@ x_query_frame_background_color (struct frame *f, XColor *bgcolor) #endif } -#endif /* HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG */ +#endif /* HAVE_PNG || HAVE_IMAGEMAGICK || HAVE_RSVG */ /*********************************************************************** Helper functions for X image types -- 2.39.2