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 | |
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')
-rw-r--r-- | bindings/php5/wrapper_source.py | 2 | ||||
-rw-r--r-- | bindings/python/wrapper_top.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bindings/php5/wrapper_source.py b/bindings/php5/wrapper_source.py index ab2d2715..27ee7f48 100644 --- a/bindings/php5/wrapper_source.py +++ b/bindings/php5/wrapper_source.py @@ -442,7 +442,7 @@ static function_entry lasso_functions[] = {''' for m in self.functions_list: print >> self.fd, ' PHP_FE(%s, NULL)' % m print >> self.fd, '''\ - {NULL, NULL, NULL} + {NULL, NULL, NULL, 0, 0} }; ''' 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 |