summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_runtime.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/source/module/pyuno_runtime.cxx')
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index 72dd9e2964eb..aaa256c8f872 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -69,6 +69,10 @@ using com::sun::star::beans::theIntrospection;
namespace pyuno
{
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
static PyTypeObject RuntimeImpl_Type =
{
PyVarObject_HEAD_INIT (&PyType_Type, 0)
@@ -127,11 +131,14 @@ static PyTypeObject RuntimeImpl_Type =
#if PY_VERSION_HEX >= 0x03080000
, nullptr // vectorcallfunc tp_vectorcall
#if PY_VERSION_HEX >= 0x03080200
- , 0 //Py_ssize_t tp_print
+ , nullptr //Py_ssize_t tp_print
#endif
#endif
#endif
};
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
/*----------------------------------------------------------------------
Runtime implementation