[pygobject] Shut up some compiler warnings
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Shut up some compiler warnings
- Date: Mon, 12 Jul 2010 08:42:13 +0000 (UTC)
commit e500adc3ac19ef6f436809e5a8828ac7e8db28f6
Author: Florian Müllner <florian muellner gmail com>
Date: Sat Jul 10 22:35:13 2010 +0200
Shut up some compiler warnings
Remove unused variables, make sure variables are properly initialized.
https://bugzilla.gnome.org/show_bug.cgi?id=624066
gi/pygi-callbacks.c | 1 -
gi/pygi-closure.c | 2 +-
gi/pygi-invoke.c | 1 -
3 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gi/pygi-callbacks.c b/gi/pygi-callbacks.c
index 868f2fb..6fdc1ce 100644
--- a/gi/pygi-callbacks.c
+++ b/gi/pygi-callbacks.c
@@ -42,7 +42,6 @@ _pygi_destroy_notify_create (void)
{
if (!global_destroy_notify) {
- ffi_status status;
PyGICClosure *destroy_notify = g_slice_new0 (PyGICClosure);
g_assert (destroy_notify);
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index eb9bb95..b26d5b1 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -280,7 +280,7 @@ _pygi_closure_handle (ffi_cif *cif,
GITypeInfo *return_type;
PyObject *retval;
PyObject *py_args;
- GArgument *out_args;
+ GArgument *out_args = NULL;
/* Lock the GIL as we are coming into this code without the lock and we
may be executing python code */
diff --git a/gi/pygi-invoke.c b/gi/pygi-invoke.c
index 214d500..a470003 100644
--- a/gi/pygi-invoke.c
+++ b/gi/pygi-invoke.c
@@ -345,7 +345,6 @@ _prepare_invocation_state (struct invocation_state *state,
if (is_caller_allocates) {
gsize size;
- gpointer value;
/* if caller allocates only use one level of indirection */
state->out_args[out_args_pos].v_pointer = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]