diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/s390-linux-tdep.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 97d0079..9dc21e8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix GCC false warning. + * s390-linux-tdep.c (s390_handle_arg): Initialize VAL. + 2015-07-02 Yao Qi <yao.qi@linaro.org> * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c index 2460aa1..ec28448 100644 --- a/gdb/s390-linux-tdep.c +++ b/gdb/s390-linux-tdep.c @@ -2572,7 +2572,8 @@ s390_handle_arg (struct s390_arg_state *as, struct value *arg, } else if (s390_function_arg_integer (type) && length <= word_size) { - ULONGEST val; + /* Initialize it just to avoid a GCC false warning. */ + ULONGEST val = 0; if (write_mode) { |