diff options
Diffstat (limited to 'pyuno/source/module/pyuno_callable.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_callable.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index 048bc35a488d..02aa082025ba 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -174,10 +174,6 @@ static PyObject* PyUNO_callable_call( } -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif static PyTypeObject PyUNO_callable_Type = { PyVarObject_HEAD_INIT( &PyType_Type, 0 ) @@ -236,14 +232,18 @@ static PyTypeObject PyUNO_callable_Type = #if PY_VERSION_HEX >= 0x03080000 , nullptr // vectorcallfunc tp_vectorcall #if PY_VERSION_HEX >= 0x03080200 +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif , nullptr //Py_ssize_t tp_print +#if defined __clang__ +#pragma clang diagnostic pop #endif #endif #endif -}; -#ifdef __GNUC__ -#pragma GCC diagnostic pop #endif +}; PyRef PyUNO_callable_new ( const Reference<XInvocation2> &my_inv, |