diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-01-24 09:33:40 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-01-24 09:33:40 +0000 |
| commit | 33bbf7a7de2361ced173857827c88204326e6bb5 (patch) | |
| tree | 5190e0ff3b0839a6fdf0922ad404535368fbbc03 /bindings/python | |
| parent | 7fc388abb3cebc81d12aad7ab2f12bbd82eb40d5 (diff) | |
| download | lasso-33bbf7a7de2361ced173857827c88204326e6bb5.tar.gz lasso-33bbf7a7de2361ced173857827c88204326e6bb5.tar.xz lasso-33bbf7a7de2361ced173857827c88204326e6bb5.zip | |
All: Fix missing field initializer problems
* lots of files: Explicitely set all field of initialized structures,
in order to remove -Wno-missing-field-initilizers from needed
compiler options when using -Wall -Wextra.
Diffstat (limited to 'bindings/python')
| -rw-r--r-- | bindings/python/wrapper_top.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index cb704aaa..c703b927 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -437,7 +437,7 @@ PyGObjectPtr_repr(PyGObjectPtr *obj) static PyMemberDef PyGObjectPtr_members[] = { {"typename", T_OBJECT, offsetof(PyGObjectPtr, typename), 0, "typename"}, - {NULL} + {NULL, 0, 0, 0, NULL} }; static PyObject* @@ -453,7 +453,7 @@ PyGObjectPtr_get_refcount(PyGObjectPtr *self, G_GNUC_UNUSED void *closure) static PyGetSetDef PyGObjectPtr_getseters[] = { {"refcount", (getter)PyGObjectPtr_get_refcount, NULL, "reference count of intern GObject*", NULL}, - {NULL} /* Sentinel */ + {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; @@ -466,7 +466,7 @@ static PyTypeObject PyGObjectPtrType = { (destructor)PyGObjectPtr_dealloc, /* tp_dealloc */ 0, /*tp_print*/ 0, /*tp_getattr*/ - 0, /*tp_setattr*/ + .tp_setattr = 0, /*tp_setattr*/ 0, /*tp_compare*/ (reprfunc)PyGObjectPtr_repr, /*tp_repr*/ 0, /*tp_as_number*/ @@ -489,6 +489,8 @@ static PyTypeObject PyGObjectPtrType = { 0, /* tp_methods */ PyGObjectPtr_members, /* tp_members */ PyGObjectPtr_getseters, /* tp_getset */ + NULL, + NULL }; static void |
