summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-02 18:15:41 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-02 20:00:18 +0200
commit3b59dbbffdb73e48f9e2398bb1eecc24e3d95e13 (patch)
tree8b58bba8c42110e10f6763b598f294bf7359b1f0 /bridges
parent86cd29772e4f0571149c479378164572fbc96034 (diff)
remove HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE check and macro
This is supported in GCC 4.6.0 already: https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Diagnostic-Pragmas.html Change-Id: I2f67e588eea3a323a2e9c81e39e56ab2e715a817
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
index 50a973f49b03..56f9bac9f808 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
@@ -94,14 +94,14 @@ std::type_info * createFake_si_class_type_info(
}
-#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
+#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
void dummy_can_throw_anything( char const * )
{
}
-#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
+#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif