From ded4fc8f9cd3446f28905ca46af056e961d5c67f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 18 Aug 2014 10:04:18 -0700 Subject: [PATCH] ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall. * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall. --- gdb/ChangeLog | 4 ++++ gdb/ada-typeprint.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c14fd5c..d8d427f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-08-18 Doug Evans + + * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall. + 2014-08-18 Joel Brobecker * ada-typeprint.c (type_is_full_subrange_of_target_type): 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) -- 2.7.4