* stack.c (return_command): Work around uninitialized variable
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 8 Feb 2013 13:55:14 +0000 (13:55 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 8 Feb 2013 13:55:14 +0000 (13:55 +0000)
warning.

gdb/ChangeLog
gdb/stack.c

index 311ebd1c7c5e7e79640239038d71d79dcbe93669..b4f88d8fd53c21eb6cc7bab0ff9077b3c94eae06 100644 (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
index 9f4aafc812d117cc32129d63996e5942f58e51e8..147d815fa7a4f3e722167bc0716441fbc8d7a021 100644 (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;