summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-13 23:37:48 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-14 00:04:16 +0100
commitacf93bbc9721038d37743c0c51170e71c6dcda28 (patch)
tree04b4fba6552c96cde72acb876e7c52911aea388d /sdext
parent83dcbe4ca755e53aaab6fb95647d95998182a51f (diff)
remove more pragma instances of GCC system_header
Use "#pragma GCC diagnostic ignored" instead which does not prevent generation of dependencies. Change-Id: Ic9034f20ef71c1ee6e5363b73c831142c2813d20
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index e990ca1b6dd3..9e34d4bf23c7 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -23,7 +23,10 @@
#include <sal/types.h>
#if defined __GNUC__
-#pragma GCC system_header
+#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
#elif defined __SUNPRO_CC
#pragma disable_warn
#elif defined _MSC_VER
@@ -39,7 +42,11 @@
#include "GlobalParams.h"
#include "PDFDoc.h"
-#if defined __SUNPRO_CC
+#if defined __GNUC__
+#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
+# pragma GCC diagnostic pop
+#endif
+#elif defined __SUNPRO_CC
#pragma enable_warn
#elif defined _MSC_VER
#pragma warning(pop)