From eb6ab0f124c4ec8ee865e908f976dbf5f8c3b306 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Tue, 24 Jul 2018 11:46:49 +0200 Subject: [PATCH] Do not pass &PyType_Type to PyVarObject_HEAD_INIT, as this will be treated on Cygwin and MinGW as a non-constant expression --- Modules/_abc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_abc.c b/Modules/_abc.c index 562a2e6d730dd3..0546e8faa0bc9e 100644 --- a/Modules/_abc.c +++ b/Modules/_abc.c @@ -66,7 +66,7 @@ PyDoc_STRVAR(abc_data_doc, "Internal state held by ABC machinery."); static PyTypeObject _abc_data_type = { - PyVarObject_HEAD_INIT(&PyType_Type, 0) + PyVarObject_HEAD_INIT(NULL, 0) "_abc_data", /*tp_name*/ sizeof(_abc_data), /*tp_size*/ .tp_dealloc = (destructor)abc_data_dealloc,