Fixes for solaris compiler
authorAnthony Green <green@redhat.com>
Wed, 9 Jan 2013 21:51:18 +0000 (21:51 +0000)
committerAnthony Green <green@redhat.com>
Wed, 9 Jan 2013 21:51:18 +0000 (21:51 +0000)
gdb/ChangeLog
gdb/ada-lang.c
gdb/cp-abi.c

index f849d59..fe5bb9d 100644 (file)
@@ -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
index 8422000..b4849a9 100644 (file)
@@ -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
index 37cf9c9..f2a96de 100644 (file)
@@ -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