From 3b59dbbffdb73e48f9e2398bb1eecc24e3d95e13 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 2 Oct 2014 18:15:41 +0200 Subject: 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 --- bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridges/source') 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 -- cgit