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