summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;