mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
2009-12-09 Phil Muldoon <pmuldoon@redhat.com>
* python/py-type.c (typy_range): Initialize variables to zero.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user