From: Pedro Alves Date: Wed, 20 Aug 2014 10:05:31 +0000 (+0100) Subject: value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=000339af7b74593f4dd3a679427b9fe34d1254f7;p=binutils-gdb.git 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. --- 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++)