This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Fix missing-prototypes error for '_initialize_spu_nat'
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 7 Jan 2014 21:45:17 +0800
- Subject: [PATCH OBV] Fix missing-prototypes error for '_initialize_spu_nat'
- Authentication-results: sourceware.org; auth=none
This patch fixes this build error below:
../../binutils-gdb/gdb/spu-linux-nat.c:616:1: error: no previous prototype for â_initialize_spu_natâ [-Werror=missing-prototypes]
Patch is pushed.
gdb:
2014-01-07 Yao Qi <yao@codesourcery.com>
* spu-linux-nat.c (_initialize_spu_nat): Declare.
---
gdb/spu-linux-nat.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c
index e9b155b..9441e02 100644
--- a/gdb/spu-linux-nat.c
+++ b/gdb/spu-linux-nat.c
@@ -610,6 +610,8 @@ spu_can_use_hw_breakpoint (int type, int cnt, int othertype)
return 0;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_spu_nat;
/* Initialize SPU native target. */
void
--
1.7.7.6