Fix missing-prototypes error for '_initialize_spu_nat'
authorYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 09:28:48 +0000 (17:28 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 13:47:14 +0000 (21:47 +0800)
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.

gdb/ChangeLog
gdb/spu-linux-nat.c

index 11e5565584d353aad6bfe3c16abeb2678e042bab..8bb7943aae4a329e73389e0de1fb21edf81da8c3 100644 (file)
@@ -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.
index e9b155bbb73d44ff567d85aee5def7dc350b871c..9441e02a5e1488afac2e178d65e96d07e7733e56 100644 (file)
@@ -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