From: Matthew Gretton-Dann Date: Fri, 8 Feb 2013 13:55:14 +0000 (+0000) Subject: * stack.c (return_command): Work around uninitialized variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=901900c4d939edad103d37851457aab225c2caa2;p=binutils-gdb.git * stack.c (return_command): Work around uninitialized variable warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 311ebd1c7c5..b4f88d8fd53 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-08 Matthew Gretton-Dann + + * stack.c (return_command): Work around uninitialized variable + warning. + 2013-02-08 Yufeng Zhang * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the diff --git a/gdb/stack.c b/gdb/stack.c index 9f4aafc812d..147d815fa7a 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2278,7 +2278,8 @@ down_command (char *count_exp, int from_tty) void return_command (char *retval_exp, int from_tty) { - enum return_value_convention rv_conv; + /* Initialize it just to avoid a GCC false warning. */ + enum return_value_convention rv_conv = RETURN_VALUE_STRUCT_CONVENTION; struct frame_info *thisframe; struct gdbarch *gdbarch; struct symbol *thisfun;