From 72137b44ff5db6893bf49277ab4d99b16365c34f Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 8 Mar 2012 10:34:34 +0100 Subject: suppress errors with -Werror --- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sdext/source') diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 3f1261c9413b..77e589620295 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -56,8 +56,12 @@ #ifdef WNT # define snprintf _snprintf -#endif +#if defined GCC +#pragma GCC diagnostic warning "-Wformat" +#pragma GCC diagnostic warning "-Wformat-extra-args" +#endif +#endif /* SYNC STREAMS ============ -- cgit