aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-09-30 12:09:10 +0300
committerEli Zaretskii2016-09-30 12:09:10 +0300
commit6133d656d0a62fa9b45d84d7f71862f577bf415c (patch)
tree090014133c83c69bd10ea17f01d30e076ec01755 /src/image.c
parent9cc59ffbbb2f20fbbf1c72d2e0c9dc47c7906a99 (diff)
downloademacs-6133d656d0a62fa9b45d84d7f71862f577bf415c.tar.gz
emacs-6133d656d0a62fa9b45d84d7f71862f577bf415c.zip
Avoid compiler warnings in image.c on MS-Windows
* src/image.c (DrawText, g_type_init) [WINDOWSNT]: Avoid compiler warning about unused macros.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c
index e508550629c..5382578c9e9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7478,7 +7478,11 @@ gif_image_p (Lisp_Object object)
7478/* avoid conflict with QuickdrawText.h */ 7478/* avoid conflict with QuickdrawText.h */
7479# define DrawText gif_DrawText 7479# define DrawText gif_DrawText
7480# include <gif_lib.h> 7480# include <gif_lib.h>
7481# undef DrawText 7481/* The bogus ifdef below, which is always true, is to avoid a compiler
7482 warning about DrawText being unused. */
7483# ifdef DrawText
7484# undef DrawText
7485# endif
7482 7486
7483/* Giflib before 5.0 didn't define these macros (used only if HAVE_NTGUI). */ 7487/* Giflib before 5.0 didn't define these macros (used only if HAVE_NTGUI). */
7484# ifndef GIFLIB_MINOR 7488# ifndef GIFLIB_MINOR
@@ -8785,7 +8789,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
8785#endif 8789#endif
8786 x_destroy_x_image (ximg); 8790 x_destroy_x_image (ximg);
8787 image_error ("Imagemagick pixel iterator creation failed"); 8791 image_error ("Imagemagick pixel iterator creation failed");
8788 goto imagemagick_error; 8792 g9113oto imagemagick_error;
8789 } 8793 }
8790 8794
8791 image_height = MagickGetImageHeight (image_wand); 8795 image_height = MagickGetImageHeight (image_wand);
@@ -9110,7 +9114,9 @@ init_svg_functions (void)
9110# define gdk_pixbuf_get_width fn_gdk_pixbuf_get_width 9114# define gdk_pixbuf_get_width fn_gdk_pixbuf_get_width
9111# define g_clear_error fn_g_clear_error 9115# define g_clear_error fn_g_clear_error
9112# define g_object_unref fn_g_object_unref 9116# define g_object_unref fn_g_object_unref
9113# define g_type_init fn_g_type_init 9117# if ! GLIB_CHECK_VERSION (2, 36, 0)
9118# define g_type_init fn_g_type_init
9119# endif
9114# define rsvg_handle_close fn_rsvg_handle_close 9120# define rsvg_handle_close fn_rsvg_handle_close
9115# define rsvg_handle_get_dimensions fn_rsvg_handle_get_dimensions 9121# define rsvg_handle_get_dimensions fn_rsvg_handle_get_dimensions
9116# define rsvg_handle_get_pixbuf fn_rsvg_handle_get_pixbuf 9122# define rsvg_handle_get_pixbuf fn_rsvg_handle_get_pixbuf