diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:32 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:32 +0000 |
commit | dd81d977610946d80da6dd21354bf9696d9251cb (patch) | |
tree | 8a9fd60416bb393047b2a8d2e15b6c70362fdd5c /bindings | |
parent | 8ef6440a9a604567d6dbd47f8948d813cd90a2ae (diff) | |
download | lasso-dd81d977610946d80da6dd21354bf9696d9251cb.tar.gz lasso-dd81d977610946d80da6dd21354bf9696d9251cb.tar.xz lasso-dd81d977610946d80da6dd21354bf9696d9251cb.zip |
* Add G_GNUC_UNUSED for unused parameter we can't remove (python wrappers).
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/lang.py | 6 | ||||
-rw-r--r-- | bindings/python/wrapper_top.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bindings/python/lang.py b/bindings/python/lang.py index fa47aa6b..26d86d53 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -630,7 +630,7 @@ register_constants(PyObject *d) mname = utils.format_as_camelcase(m[1]) # getter print >> fd, '''static PyObject* -%s_%s_get(PyObject *self, PyObject *args) +%s_%s_get(G_GNUC_UNUSED PyObject *self, PyObject *args) {''' % (klassname[5:], mname) self.wrapper_list.append('%s_%s_get' % (klassname[5:], mname)) @@ -660,7 +660,7 @@ register_constants(PyObject *d) # setter print >> fd, '''static PyObject* -%s_%s_set(PyObject *self, PyObject *args) +%s_%s_set(G_GNUC_UNUSED PyObject *self, PyObject *args) {''' % (klassname[5:], mname) self.wrapper_list.append('%s_%s_set' % (klassname[5:], mname)) @@ -779,7 +779,7 @@ register_constants(PyObject *d) name = m.name[6:] self.wrapper_list.append(name) print >> fd, '''static PyObject* -%s(PyObject *self, PyObject *args) +%s(G_GNUC_UNUSED PyObject *self, PyObject *args) {''' % name parse_tuple_format = [] parse_tuple_args = [] diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index 11d83efd..3e65393e 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -439,7 +439,7 @@ static PyMemberDef PyGObjectPtr_members[] = { }; static PyObject* -PyGObjectPtr_get_refcount(PyGObjectPtr *self, void *closure) +PyGObjectPtr_get_refcount(PyGObjectPtr *self, G_GNUC_UNUSED void *closure) { PyObject *refcount; |