From 000339af7b74593f4dd3a679427b9fe34d1254f7 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 20 Aug 2014 11:05:31 +0100 Subject: [PATCH] value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall. 2014-08-20 Pedro Alves gdb/ * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall. --- gdb/ChangeLog | 4 ++++ gdb/value.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55cc92c8ed9..c0b4f82b04c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-08-20 Pedro Alves + + * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall. + 2014-08-20 Yao Qi * amd64-tdep.c (amd64_classify): Add a blank line after the diff --git a/gdb/value.c b/gdb/value.c index b74f23a2e35..09ee1caec4e 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -827,7 +827,7 @@ value_contents_bits_eq (const struct value *val1, int offset1, while (length > 0) { - ULONGEST l, h; + ULONGEST l = 0, h = 0; /* init for gcc -Wall */ int i; for (i = 0; i < 2; i++) -- 2.30.2