From da11196a248b530c3b3a8329497d71332f8c71a3 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 2 Jun 2014 21:55:38 +0400 Subject: [PATCH] * image.c (x_query_frame_background_color) [HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG]: Fix --enable-gcc-warnings compilation without image libraries. --- src/ChangeLog | 6 ++++++ src/image.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c22b925a1d7..1f321a9df4b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-06-02 Dmitry Antipov + + * image.c (x_query_frame_background_color) + [HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG]: + Fix --enable-gcc-warnings compilation without image libraries. + 2014-06-02 Eli Zaretskii * w32heap.c (malloc_after_dump, realloc_after_dump): Update the diff --git a/src/image.c b/src/image.c index 304603e7382..3220a45a282 100644 --- a/src/image.c +++ b/src/image.c @@ -1236,6 +1236,9 @@ 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) + /* Store F's background color into *BGCOLOR. */ static void x_query_frame_background_color (struct frame *f, XColor *bgcolor) @@ -1248,7 +1251,8 @@ x_query_frame_background_color (struct frame *f, XColor *bgcolor) #endif } - +#endif /* HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG */ + /*********************************************************************** Helper functions for X image types ***********************************************************************/ -- 2.39.2