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 f849d595cee60ffc015d1e0ec35fc6cfed8ee647..fe5bb9dd92258376254c285d6279384057698da9 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 842200086fd32e9d57f0a6bae65b54b30651eb13..b4849a944e632e989a1b97ad843a44563d8a72c5 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 37cf9c9e4fd813b6466e8425a15245666201bf89..f2a96deda64765a228e122181ef46401641ed7d0 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