aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lang.c2
-rw-r--r--gdb/cp-abi.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f849d59..fe5bb9d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-09 Anthony Green <green@moxielogic.com>
+
+ * cp-abi.c (cplus_print_vtable): Don't return value from void
+ function.
+ * ada-lang.c (re_set_catch_assert): Ditto.
+
2013-01-09 Doug Evans <dje@google.com>
* symfile.h (quick_symbol_functions): Delete member
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 8422000..b4849a9 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11793,7 +11793,7 @@ allocate_location_catch_assert (struct breakpoint *self)
static void
re_set_catch_assert (struct breakpoint *b)
{
- return re_set_exception (ex_catch_assert, b);
+ re_set_exception (ex_catch_assert, b);
}
static void
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index 37cf9c9..f2a96de 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -176,7 +176,7 @@ cplus_print_vtable (struct value *value)
{
if (current_cp_abi.print_vtable == NULL)
error (_("GDB cannot print the vtable on this target"));
- return (*current_cp_abi.print_vtable) (value);
+ (*current_cp_abi.print_vtable) (value);
}
int