aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2013-02-08 13:55:14 +0000
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2013-02-08 13:55:14 +0000
commit901900c4d939edad103d37851457aab225c2caa2 (patch)
tree3da0da0dbf3201e0cd9847ea8c9fe5a7a1542208 /gdb/stack.c
parentb5dbc8d42991fb1ac3cf5d9b7817102712701d30 (diff)
downloadgdb-901900c4d939edad103d37851457aab225c2caa2.zip
gdb-901900c4d939edad103d37851457aab225c2caa2.tar.gz
gdb-901900c4d939edad103d37851457aab225c2caa2.tar.bz2
* stack.c (return_command): Work around uninitialized variable
warning.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 9f4aafc..147d815 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;