macOS: [skip ci] suppress some more Py3.8 warnings, suppress warnings about deprecated OpenGL API

This commit is contained in:
wmayer
2020-10-17 23:53:47 +02:00
parent 0f007c1370
commit 409ceb6ec5
4 changed files with 20 additions and 0 deletions

View File

@@ -75,6 +75,11 @@ PyObjectBase::~PyObjectBase()
* 0 and define tp_base as 0.
*/
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
PyTypeObject PyObjectBase::Type = {
PyVarObject_HEAD_INIT(&PyType_Type,0)
"PyObjectBase", /*tp_name*/
@@ -142,6 +147,10 @@ PyTypeObject PyObjectBase::Type = {
#endif
};
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
/*------------------------------
* PyObjectBase Methods -- Every class, even the abstract one should have a Methods
------------------------------*/