[patch] Fix for Solaris' compiler

Anthony Green green@moxielogic.com
Wed Jan 9 19:27:00 GMT 2013


I recently found myself building gdb with the native vendor compiler
on Solaris.  It complained about a couple of things - and here are the
resulting fixes.  Ok to commit?

AG


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.


Index: ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.388
diff -u -r1.388 ada-lang.c
--- ada-lang.c  1 Jan 2013 06:32:36 -0000       1.388
+++ ada-lang.c  9 Jan 2013 19:21:19 -0000
@@ -11793,7 +11793,7 @@
 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: cp-abi.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-abi.c,v
retrieving revision 1.36
diff -u -r1.36 cp-abi.c
--- cp-abi.c    1 Jan 2013 06:32:40 -0000       1.36
+++ cp-abi.c    9 Jan 2013 19:21:19 -0000
@@ -176,7 +176,7 @@
 {
   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



More information about the Gdb-patches mailing list