From 843e694d6a6dd64a1a3e95ba9f30bdeab8d1fcdb Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Wed, 9 Jan 2013 21:51:18 +0000 Subject: [PATCH] Fixes for solaris compiler --- gdb/ChangeLog | 6 ++++++ gdb/ada-lang.c | 2 +- gdb/cp-abi.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f849d595cee..fe5bb9dd922 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-01-09 Anthony Green + + * 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 * symfile.h (quick_symbol_functions): Delete member diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 842200086fd..b4849a944e6 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 37cf9c9e4fd..f2a96deda64 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 -- 2.30.2