From bd1f77885b60e39e5a4125053ae2ae2a26244419 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 7 Jan 2014 17:28:48 +0800 Subject: Fix missing-prototypes error for '_initialize_spu_nat' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] gdb: 2014-01-07 Yao Qi * spu-linux-nat.c (_initialize_spu_nat): Declare. --- gdb/spu-linux-nat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/spu-linux-nat.c') 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 -- cgit v1.1