diff options
author | Yao Qi <yao@codesourcery.com> | 2014-01-07 17:28:48 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-01-07 21:47:14 +0800 |
commit | bd1f77885b60e39e5a4125053ae2ae2a26244419 (patch) | |
tree | ae25830e879433d63486dad176556b185830cae1 | |
parent | 9877c63c84d71d43e3b9ce3c2e54ba3b4065459a (diff) | |
download | fsf-binutils-gdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.zip fsf-binutils-gdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.tar.gz fsf-binutils-gdb-bd1f77885b60e39e5a4125053ae2ae2a26244419.tar.bz2 |
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 <yao@codesourcery.com>
* spu-linux-nat.c (_initialize_spu_nat): Declare.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/spu-linux-nat.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11e5565..8bb7943 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-07 Yao Qi <yao@codesourcery.com> + + * spu-linux-nat.c (_initialize_spu_nat): Declare. + 2014-01-07 Joel Brobecker <brobecker@adacore.com> * ada-valprint.c (print_field_values): Add "language" parameter. 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 |