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
This commit is contained in:
parent
86cd29772e
commit
3b59dbbffd
@ -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
|
||||
|
||||
|
@ -17,7 +17,6 @@ Any change in this header will cause a rebuild of almost everything.
|
||||
#define HAVE_CXX11_FINAL 0
|
||||
#define HAVE_CXX11_PERFECT_FORWARDING 0
|
||||
#define HAVE_GCC_BUILTIN_ATOMIC 0
|
||||
#define HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE 0
|
||||
/* _Pragma */
|
||||
#define HAVE_GCC_PRAGMA_OPERATOR 0
|
||||
#define HAVE_GCC_DEPRECATED_MESSAGE 0
|
||||
|
14
configure.ac
14
configure.ac
@ -5789,20 +5789,6 @@ if test "$GCC" = "yes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether $CC supports pragma GCC diagnostic push/pop])
|
||||
save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -Werror -Wunknown-pragmas -Wunused-parameter"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
void dummy(int n) {}
|
||||
#pragma GCC diagnostic pop
|
||||
])], [
|
||||
AC_DEFINE([HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE],[1])
|
||||
AC_MSG_RESULT([yes])
|
||||
], [AC_MSG_RESULT([no])])
|
||||
CFLAGS=$save_CFLAGS
|
||||
|
||||
AC_MSG_CHECKING([whether $CC supports __attribute__((deprecated(message)))])
|
||||
save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
|
@ -17,8 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE \
|
||||
&& !defined __clang__
|
||||
#if defined __GNUC__ && !defined __clang__
|
||||
#pragma GCC diagnostic pop
|
||||
#elif defined _MSC_VER
|
||||
#pragma warning(pop)
|
||||
|
@ -48,8 +48,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE \
|
||||
&& !defined __clang__
|
||||
#if defined __GNUC__ && !defined __clang__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#elif defined _MSC_VER
|
||||
|
@ -1,11 +1,10 @@
|
||||
--- boost/ptr_container/ptr_map.hpp
|
||||
+++ boost/ptr_container/ptr_map.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -17,19 +16,18 @@
|
||||
|
||||
}
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- boost/ptr_container/ptr_map_adapter.hpp
|
||||
+++ boost/ptr_container/ptr_map_adapter.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -41,19 +39,18 @@
|
||||
|
||||
} // namespace 'boost'
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- boost/ptr_container/ptr_set_adapter.hpp
|
||||
+++ boost/ptr_container/ptr_set_adapter.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -65,19 +62,18 @@
|
||||
|
||||
} // namespace 'boost'
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- boost/ptr_container/ptr_sequence_adapter.hpp
|
||||
+++ boost/ptr_container/ptr_sequence_adapter.hpp
|
||||
@@ -16,6 +16,11 @@
|
||||
@@ -16,6 +16,10 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -88,19 +84,18 @@
|
||||
|
||||
} // namespace 'boost'
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- boost/ptr_container/ptr_vector.hpp
|
||||
+++ boost/ptr_container/ptr_vector.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -112,19 +107,18 @@
|
||||
|
||||
}
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- boost/smart_ptr/detail/shared_count.hpp
|
||||
+++ boost/smart_ptr/detail/shared_count.hpp
|
||||
@@ -18,6 +18,12 @@
|
||||
@@ -18,6 +18,11 @@
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -136,19 +130,18 @@
|
||||
# pragma warn .8027 // Functions containing try are not expanded inline
|
||||
#endif
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif // #ifndef BOOST_SMART_PTR_DETAIL_SHARED_COUNT_HPP_INCLUDED
|
||||
--- boost/smart_ptr/scoped_ptr.hpp
|
||||
+++ boost/smart_ptr/scoped_ptr.hpp
|
||||
@@ -11,6 +11,12 @@
|
||||
@@ -11,6 +11,11 @@
|
||||
// http://www.boost.org/libs/smart_ptr/scoped_ptr.htm
|
||||
//
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -160,19 +153,18 @@
|
||||
|
||||
} // namespace boost
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif // #ifndef BOOST_SMART_PTR_SCOPED_PTR_HPP_INCLUDED
|
||||
--- boost/smart_ptr/shared_ptr.hpp
|
||||
+++ boost/smart_ptr/shared_ptr.hpp
|
||||
@@ -14,6 +14,12 @@
|
||||
@@ -14,6 +14,11 @@
|
||||
// See http://www.boost.org/libs/smart_ptr/shared_ptr.htm for documentation.
|
||||
//
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
+#endif
|
||||
@ -180,12 +172,11 @@
|
||||
#include <boost/config.hpp> // for broken compiler workarounds
|
||||
|
||||
#if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
||||
@@ -1036,4 +1036,9 @@
|
||||
@@ -1036,4 +1036,8 @@
|
||||
|
||||
#endif // #if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
|
21
external/boost/boost_1_44_0-clang-warnings.patch
vendored
21
external/boost/boost_1_44_0-clang-warnings.patch
vendored
@ -1,11 +1,10 @@
|
||||
--- misc/boost_1_44_0/boost/random/lagged_fibonacci.hpp
|
||||
+++ misc/build/boost_1_44_0/boost/random/lagged_fibonacci.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
#ifndef BOOST_RANDOM_LAGGED_FIBONACCI_HPP
|
||||
#define BOOST_RANDOM_LAGGED_FIBONACCI_HPP
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wshadow"
|
||||
+#endif
|
||||
@ -17,19 +16,18 @@
|
||||
|
||||
} // namespace boost
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif // BOOST_RANDOM_LAGGED_FIBONACCI_HPP
|
||||
--- misc/boost_1_44_0/boost/random/shuffle_output.hpp
|
||||
+++ misc/build/boost_1_44_0/boost/random/shuffle_output.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
#ifndef BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
|
||||
#define BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wshadow"
|
||||
+#endif
|
||||
@ -41,19 +39,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
#endif // BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
|
||||
--- misc/boost_1_44_0/boost/random/subtract_with_carry.hpp
|
||||
+++ misc/build/boost_1_44_0/boost/random/subtract_with_carry.hpp
|
||||
@@ -16,6 +16,12 @@
|
||||
@@ -16,6 +16,11 @@
|
||||
#ifndef BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
|
||||
#define BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wshadow"
|
||||
+#endif
|
||||
@ -65,7 +62,7 @@
|
||||
} // namespace random
|
||||
} // namespace boost
|
||||
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
+
|
||||
|
20
external/clucene/patches/clucene-warnings.patch
vendored
20
external/clucene/patches/clucene-warnings.patch
vendored
@ -5,7 +5,7 @@
|
||||
#define _lucene_analysis_AnalysisHeader_
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
|
||||
+#endif
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
CL_NS_END
|
||||
+
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
#endif
|
||||
@ -29,7 +29,7 @@
|
||||
#define _lucene_search_Searcher_
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
|
||||
+#endif
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
CL_NS_END
|
||||
+
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
#endif
|
||||
@ -53,7 +53,7 @@
|
||||
#define _lucene_store_IndexInput_
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
|
||||
+#endif
|
||||
@ -66,7 +66,7 @@
|
||||
};
|
||||
CL_NS_END
|
||||
+
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
#endif
|
||||
@ -77,7 +77,7 @@
|
||||
#define _lucene_util_Array_
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wshadow"
|
||||
+# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
CL_NS_END
|
||||
+
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
#endif
|
||||
@ -102,7 +102,7 @@
|
||||
#define _lucene_util_PriorityQueue_
|
||||
|
||||
+#include <config_global.h>
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic push
|
||||
+# pragma GCC diagnostic ignored "-Wshadow"
|
||||
+#endif
|
||||
@ -115,7 +115,7 @@
|
||||
|
||||
CL_NS_END
|
||||
+
|
||||
+#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
+#if defined(__GNUC__)
|
||||
+# pragma GCC diagnostic pop
|
||||
+#endif
|
||||
#endif
|
||||
|
@ -80,8 +80,7 @@ template< typename T > class PropertySetMixin;
|
||||
|
||||
@since UDK 3.2.1
|
||||
*/
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE \
|
||||
&& !defined __clang__
|
||||
#if defined __GNUC__ && !defined __clang__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#endif
|
||||
@ -478,8 +477,7 @@ private:
|
||||
PropertySetMixin( const PropertySetMixin&); // not defined
|
||||
void operator=( const PropertySetMixin&); // not defined
|
||||
};
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE \
|
||||
&& !defined __clang__
|
||||
#if defined __GNUC__ && !defined __clang__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
@ -497,7 +497,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
|
||||
SAL_WNODEPRECATED_DECLARATIONS_POP
|
||||
*/
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_OPERATOR
|
||||
#if HAVE_GCC_PRAGMA_OPERATOR
|
||||
#define SAL_WNODEPRECATED_DECLARATIONS_PUSH \
|
||||
_Pragma(SAL_STRINGIFY_ARG(GCC diagnostic push)) \
|
||||
_Pragma(SAL_STRINGIFY_ARG(GCC diagnostic ignored "-Wdeprecated-declarations"))
|
||||
|
@ -23,10 +23,8 @@
|
||||
#include <sal/types.h>
|
||||
|
||||
#if defined __GNUC__
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
#elif defined _MSC_VER
|
||||
#pragma warning(push, 1)
|
||||
#endif
|
||||
@ -41,9 +39,7 @@
|
||||
#include "PDFDoc.h"
|
||||
|
||||
#if defined __GNUC__
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
#elif defined _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
@ -22,12 +22,12 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
G_DEFINE_TYPE (OOoMountOperation, ooo_mount_operation, G_TYPE_MOUNT_OPERATION);
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
@ -35,12 +35,12 @@
|
||||
#include <ne_basic.h>
|
||||
#include <ne_props.h>
|
||||
|
||||
#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#if defined(__GNUC__)
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wshadow"
|
||||
#endif
|
||||
#include <ne_locks.h>
|
||||
#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#if defined(__GNUC__)
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
@ -39,12 +39,12 @@ struct _GLOAction
|
||||
typedef GObjectClass GLOActionClass;
|
||||
typedef struct _GLOAction GLOAction;
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
G_DEFINE_TYPE (GLOAction, g_lo_action, G_TYPE_OBJECT);
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
@ -106,7 +106,7 @@ struct _GLOActionGroupPrivate
|
||||
|
||||
static void g_lo_action_group_iface_init (GActionGroupInterface *);
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
@ -114,7 +114,7 @@ G_DEFINE_TYPE_WITH_CODE (GLOActionGroup,
|
||||
g_lo_action_group, G_TYPE_OBJECT,
|
||||
G_IMPLEMENT_INTERFACE (G_TYPE_ACTION_GROUP,
|
||||
g_lo_action_group_iface_init));
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
@ -25,12 +25,12 @@ struct _GLOMenu
|
||||
|
||||
typedef GMenuModelClass GLOMenuClass;
|
||||
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
G_DEFINE_TYPE (GLOMenu, g_lo_menu, G_TYPE_MENU_MODEL);
|
||||
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user