aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2009-12-09 07:49:31 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2009-12-09 07:49:31 +0000
commit8d099ae953697a81dd49fa135b72e731de2a8f70 (patch)
tree258f30f838b481c555934e181e8e0f382f330a35 /gdb
parent3a6c31f95c841128e63aa36c887f85d5dcdbb450 (diff)
downloadgdb-8d099ae953697a81dd49fa135b72e731de2a8f70.zip
gdb-8d099ae953697a81dd49fa135b72e731de2a8f70.tar.gz
gdb-8d099ae953697a81dd49fa135b72e731de2a8f70.tar.bz2
2009-12-09 Phil Muldoon <pmuldoon@redhat.com>
* python/py-type.c (typy_range): Initialize variables to zero.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/python/py-type.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index c581307..0ebc9a5 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