From 8d099ae953697a81dd49fa135b72e731de2a8f70 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Wed, 9 Dec 2009 07:49:31 +0000 Subject: [PATCH] 2009-12-09 Phil Muldoon * python/py-type.c (typy_range): Initialize variables to zero. --- gdb/python/py-type.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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