aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-typeprint.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-08-18 10:04:18 -0700
committerDoug Evans <dje@google.com>2014-08-18 10:04:18 -0700
commitded4fc8f9cd3446f28905ca46af056e961d5c67f (patch)
treeef62075a36c9a5e252b3c98d5fe9261ecf2a1e92 /gdb/ada-typeprint.c
parent3ce3a066e18b52c1b7c8da841e0416ecf687e1e5 (diff)
downloadfsf-binutils-gdb-ded4fc8f9cd3446f28905ca46af056e961d5c67f.zip
fsf-binutils-gdb-ded4fc8f9cd3446f28905ca46af056e961d5c67f.tar.gz
fsf-binutils-gdb-ded4fc8f9cd3446f28905ca46af056e961d5c67f.tar.bz2
ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
* ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r--gdb/ada-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 57c8d93..27bd1d1 100644
--- a/gdb/ada-typeprint.c
+++ b/gdb/ada-typeprint.c
@@ -160,7 +160,7 @@ print_range (struct type *type, struct ui_file *stream,
{
struct type *target_type;
volatile struct gdb_exception e;
- LONGEST lo, hi;
+ LONGEST lo = 0, hi = 0; /* init for gcc -Wall */
target_type = TYPE_TARGET_TYPE (type);
if (target_type == NULL)