@@ -69,15 +69,15 @@ extern "C"
6969 } propertyobject;
7070
7171 static PyObject *
72- static_data_descr_get (PyObject *self, PyObject *obj, PyObject * /* type*/ )
72+ static_data_descr_get (PyObject *self, PyObject * /* obj*/ , PyObject * /* type*/ )
7373 {
7474 propertyobject *gs = (propertyobject *)self;
7575
7676 return PyObject_CallFunction (gs->prop_get , " ()" );
7777 }
7878
7979 static int
80- static_data_descr_set (PyObject *self, PyObject *obj, PyObject *value)
80+ static_data_descr_set (PyObject *self, PyObject * /* obj*/ , PyObject *value)
8181 {
8282 propertyobject *gs = (propertyobject *)self;
8383 PyObject *func, *res;
@@ -147,6 +147,14 @@ static PyTypeObject static_data_object = {
147147 0 , // filled in with type_new /* tp_new */
148148 0 , // filled in with __PyObject_GC_Del /* tp_free */
149149 (inquiry)type_is_gc, /* tp_is_gc */
150+ 0 , /* tp_bases */
151+ 0 , /* tp_mro */
152+ 0 , /* tp_cache */
153+ 0 , /* tp_subclasses */
154+ 0 , /* tp_weaklist */
155+ #if PYTHON_API_VERSION >= 1012
156+ 0 /* tp_del */
157+ #endif
150158};
151159
152160namespace objects
@@ -243,6 +251,14 @@ static PyTypeObject class_metatype_object = {
243251 0 , // filled in with type_new /* tp_new */
244252 0 , // filled in with __PyObject_GC_Del /* tp_free */
245253 (inquiry)type_is_gc, /* tp_is_gc */
254+ 0 , /* tp_bases */
255+ 0 , /* tp_mro */
256+ 0 , /* tp_cache */
257+ 0 , /* tp_subclasses */
258+ 0 , /* tp_weaklist */
259+ #if PYTHON_API_VERSION >= 1012
260+ 0 /* tp_del */
261+ #endif
246262};
247263
248264// Install the instance data for a C++ object into a Python instance
@@ -295,7 +311,7 @@ namespace objects
295311 }
296312
297313 static PyObject *
298- instance_new (PyTypeObject* type_, PyObject* args, PyObject *kw)
314+ instance_new (PyTypeObject* type_, PyObject* /* args*/ , PyObject* / * kw*/ )
299315 {
300316 // Attempt to find the __instance_size__ attribute. If not present, no problem.
301317 PyObject* d = type_->tp_dict ;
@@ -340,14 +356,14 @@ namespace objects
340356
341357
342358 static PyGetSetDef instance_getsets[] = {
343- {" __dict__" , instance_get_dict, instance_set_dict, NULL },
344- {0 }
359+ {" __dict__" , instance_get_dict, instance_set_dict, NULL , 0 },
360+ {0 , 0 , 0 , 0 , 0 }
345361 };
346362
347363
348364 static PyMemberDef instance_members[] = {
349- {" __weakref__" , T_OBJECT, offsetof (instance<>, weakrefs), 0 },
350- {0 }
365+ {" __weakref__" , T_OBJECT, offsetof (instance<>, weakrefs), 0 , 0 },
366+ {0 , 0 , 0 , 0 , 0 }
351367 };
352368
353369 static PyTypeObject class_type_object = {
@@ -390,7 +406,17 @@ namespace objects
390406 offsetof (instance<>,dict), /* tp_dictoffset */
391407 0 , /* tp_init */
392408 PyType_GenericAlloc, /* tp_alloc */
393- instance_new /* tp_new */
409+ instance_new, /* tp_new */
410+ 0 , /* tp_free */
411+ 0 , /* tp_is_gc */
412+ 0 , /* tp_bases */
413+ 0 , /* tp_mro */
414+ 0 , /* tp_cache */
415+ 0 , /* tp_subclasses */
416+ 0 , /* tp_weaklist */
417+ #if PYTHON_API_VERSION >= 1012
418+ 0 /* tp_del */
419+ #endif
394420 };
395421
396422 BOOST_PYTHON_DECL type_handle class_type ()
0 commit comments