From a8cc36fa8e7b043134c28723c8527facbe5ed135 Mon Sep 17 00:00:00 2001 From: devans Date: Fri, 7 Oct 2011 22:02:41 +0000 Subject: [PATCH] * python/py-value.c (valpy_call): Initialize ftype to avoid compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/python/py-value.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a7a012f3f..11c8e12fb0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-10-07 Doug Evans + + * python/py-value.c (valpy_call): Initialize ftype to avoid compiler + warning. + 2011-10-07 Pedro Alves * linux-nat.h (ALL_LWPS): Remove the ptid parameter. diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 98835b5d88..d22fb066d2 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -515,7 +515,7 @@ valpy_call (PyObject *self, PyObject *args, PyObject *keywords) volatile struct gdb_exception except; struct value *function = ((value_object *) self)->value; struct value **vargs = NULL; - struct type *ftype; + struct type *ftype = NULL; TRY_CATCH (except, RETURN_MASK_ALL) { -- 2.11.0