diff options
author | Pedro Alves <palves@redhat.com> | 2014-08-20 11:05:31 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-08-20 11:29:15 +0100 |
commit | 000339af7b74593f4dd3a679427b9fe34d1254f7 (patch) | |
tree | 6fb84685c677841779746001bb11ce28308c58cd /gdb | |
parent | 5f52445bfb1421c301d95e508c5dc52c4bf86abd (diff) | |
download | gdb-000339af7b74593f4dd3a679427b9fe34d1254f7.zip gdb-000339af7b74593f4dd3a679427b9fe34d1254f7.tar.gz gdb-000339af7b74593f4dd3a679427b9fe34d1254f7.tar.bz2 |
value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2014-08-20 Pedro Alves <palves@redhat.com>
gdb/
* value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/value.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55cc92c..c0b4f82 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-08-20 Pedro Alves <palves@redhat.com> + + * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall. + 2014-08-20 Yao Qi <yao@codesourcery.com> * amd64-tdep.c (amd64_classify): Add a blank line after the diff --git a/gdb/value.c b/gdb/value.c index b74f23a..09ee1ca 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++) |