From 2d172f44c34b90fae899b250eb66745286f72d05 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 6 Nov 2014 13:12:43 +0000 Subject: [PATCH] fix a compiler warning --- libvips/deprecated/im_png2vips.c | 3 ++- libvips/deprecated/im_tiff2vips.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libvips/deprecated/im_png2vips.c b/libvips/deprecated/im_png2vips.c index deaa32cc..fb84cdbb 100644 --- a/libvips/deprecated/im_png2vips.c +++ b/libvips/deprecated/im_png2vips.c @@ -91,7 +91,8 @@ png2vips( const char *name, IMAGE *out, gboolean header_only ) return( -1 ); } #else - vips_error( "im_png2vips", _( "no PNG support in your libvips" ) ); + vips_error( "im_png2vips", + "%s", _( "no PNG support in your libvips" ) ); return( -1 ); #endif /*HAVE_PNG*/ diff --git a/libvips/deprecated/im_tiff2vips.c b/libvips/deprecated/im_tiff2vips.c index eecfd5fb..5c022ae2 100644 --- a/libvips/deprecated/im_tiff2vips.c +++ b/libvips/deprecated/im_tiff2vips.c @@ -102,7 +102,8 @@ tiff2vips( const char *name, IMAGE *out, gboolean header_only ) return( -1 ); } #else - vips_error( "im_tiff2vips", _( "no TIFF support in your libvips" ) ); + vips_error( "im_tiff2vips", + "%s", _( "no TIFF support in your libvips" ) ); return( -1 ); #endif /*HAVE_TIFF*/