Fix no previous prototype for '_initialize_gnu_nat' [-Werror=missing-prototypes]
authorYao Qi <yao@codesourcery.com>
Sun, 5 Jan 2014 07:05:44 +0000 (15:05 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 03:01:27 +0000 (11:01 +0800)
This patch fixes this error below by declaring _initialize_gnu_nat.

../../../git/gdb/gnu-nat.c:3447:1: error: no previous prototype for '_initialize_gnu_nat' [-Werror=missing-prototypes]

gdb:

2014-01-07  Yao Qi  <yao@codesourcery.com>

* gnu-nat.c (_initialize_gnu_nat): Declare.

gdb/ChangeLog
gdb/gnu-nat.c

index 14f326e5b5d91d9620f6908acdb894ae16a09c1d..f61a4843064c552a228f4199d8e9512070222ced 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-07  Yao Qi  <yao@codesourcery.com>
+
+       * gnu-nat.c (_initialize_gnu_nat): Declare.
+
 2014-01-07  Yao Qi  <yao@codesourcery.com>
 
        * gdbarch.sh (byte_order, byte_order_for_code): Change type to
index a1af9aa04b283fb780fc428c4599ca05523263cd..8c45dcf81d2c335c896028f7a2c679fc10e17e97 100644 (file)
@@ -3439,6 +3439,10 @@ to the thread's initial suspend-count when gdb notices the threads."),
 }
 
 \f
+
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_gnu_nat;
+
 void
 _initialize_gnu_nat (void)
 {