From: Yao Qi Date: Tue, 7 Jan 2014 09:28:48 +0000 (+0800) Subject: Fix missing-prototypes error for '_initialize_spu_nat' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd1f77885b60e39e5a4125053ae2ae2a26244419;p=binutils-gdb.git Fix missing-prototypes error for '_initialize_spu_nat' 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11e5565584d..8bb7943aae4 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 e9b155bbb73..9441e02a5e1 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