This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Fix for Solaris' compiler
- From: Anthony Green <green at moxielogic dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 9 Jan 2013 14:27:44 -0500
- Subject: [patch] Fix for Solaris' compiler
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