* stack.c (return_command): Work around uninitialized variable

warning.
This commit is contained in:
Matthew Gretton-Dann 2013-02-08 13:55:14 +00:00
parent b5dbc8d429
commit 901900c4d9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
* stack.c (return_command): Work around uninitialized variable
warning.
2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the

View File

@ -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;