From fdc07cb6c98532e5f6f902d4b1981a59f7a904a0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 8 Jun 2020 14:40:00 +0200 Subject: [PATCH] Py3.8: [skip ci] missing initializer for member '_typeobject::tp_vectorcall' [-Wmissing-field-initializers] --- src/Base/PyObjectBase.cpp | 3 +++ src/Mod/Part/App/AppPart.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Base/PyObjectBase.cpp b/src/Base/PyObjectBase.cpp index 2ccac31a9eab..182366e9e4b8 100644 --- a/src/Base/PyObjectBase.cpp +++ b/src/Base/PyObjectBase.cpp @@ -133,6 +133,9 @@ PyTypeObject PyObjectBase::Type = { #if PY_MAJOR_VERSION >= 3 ,0 /*tp_finalize */ #endif +#if PY_VERSION_HEX >= 0x03080000 + ,0 /*tp_vectorcall */ +#endif }; /*------------------------------ diff --git a/src/Mod/Part/App/AppPart.cpp b/src/Mod/Part/App/AppPart.cpp index 3073d5e39b09..2d57c86e0c52 100644 --- a/src/Mod/Part/App/AppPart.cpp +++ b/src/Mod/Part/App/AppPart.cpp @@ -229,6 +229,9 @@ PyTypeObject LinePyOld::Type = { #if PY_MAJOR_VERSION >=3 ,0 /*tp_finalize */ #endif +#if PY_VERSION_HEX >= 0x03080000 + ,0 /*tp_vectorcall */ +#endif }; }