GCC diagnostic push / pop requires HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE

Change-Id: I0765649b94b370caf92a29a8ff2224e335196612
This commit is contained in:
Michael Stahl
2013-11-14 15:51:48 +01:00
parent 78d4b78353
commit 7379d2cf98

View File

@@ -23,7 +23,7 @@
#include <sal/types.h>
#if defined __GNUC__
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
@@ -43,7 +43,7 @@
#include "PDFDoc.h"
#if defined __GNUC__
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
# pragma GCC diagnostic pop
#endif
#elif defined __SUNPRO_CC