From bd1f77885b60e39e5a4125053ae2ae2a26244419 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 7 Jan 2014 17:28:48 +0800 Subject: [PATCH] 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/ChangeLog | 4 ++++ gdb/spu-linux-nat.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11e5565584..8bb7943aae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-07 Yao Qi + + * spu-linux-nat.c (_initialize_spu_nat): Declare. + 2014-01-07 Joel Brobecker * ada-valprint.c (print_field_values): Add "language" parameter. diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index e9b155bbb7..9441e02a5e 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