summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <florian.muellner@gmail.com>2010-07-10 22:35:13 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-07-12 10:41:20 +0200
commite500adc3ac19ef6f436809e5a8828ac7e8db28f6 (patch)
treea41eb01ee3701a4af513a7871cc6cea5a0fff803
parent2efa18afbcc2fac1c90958535b2f80e6e730ee56 (diff)
downloadpygobject-e500adc3ac19ef6f436809e5a8828ac7e8db28f6.tar.gz
Shut up some compiler warnings
Remove unused variables, make sure variables are properly initialized. https://bugzilla.gnome.org/show_bug.cgi?id=624066
-rw-r--r--gi/pygi-callbacks.c1
-rw-r--r--gi/pygi-closure.c2
-rw-r--r--gi/pygi-invoke.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/gi/pygi-callbacks.c b/gi/pygi-callbacks.c
index 868f2fb3..6fdc1ce7 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 eb9bb95d..b26d5b1a 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 214d5009..a4700035 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;