From: Phil Muldoon Date: Wed, 9 Dec 2009 07:49:31 +0000 (+0000) Subject: 2009-12-09 Phil Muldoon X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d099ae953697a81dd49fa135b72e731de2a8f70;p=binutils-gdb.git 2009-12-09 Phil Muldoon * python/py-type.c (typy_range): Initialize variables to zero. --- diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index c581307d57c..0ebc9a562b8 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -282,7 +282,8 @@ typy_range (PyObject *self, PyObject *args) struct type *type = ((type_object *) self)->type; PyObject *result; PyObject *low_bound = NULL, *high_bound = NULL; - LONGEST low, high; + /* Initialize these to appease GCC warnings. */ + LONGEST low = 0, high = 0; if (TYPE_CODE (type) != TYPE_CODE_ARRAY && TYPE_CODE (type) != TYPE_CODE_STRING