From 3aa8c9698a0e604eab7a1e913b09b6506ce00c4c Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Sun, 5 Jan 2014 15:05:44 +0800 Subject: [PATCH] Fix no previous prototype for '_initialize_gnu_nat' [-Werror=missing-prototypes] 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 * gnu-nat.c (_initialize_gnu_nat): Declare. --- gdb/ChangeLog | 4 ++++ gdb/gnu-nat.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 14f326e5b5d..f61a4843064 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-07 Yao Qi + + * gnu-nat.c (_initialize_gnu_nat): Declare. + 2014-01-07 Yao Qi * gdbarch.sh (byte_order, byte_order_for_code): Change type to diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index a1af9aa04b2..8c45dcf81d2 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3439,6 +3439,10 @@ to the thread's initial suspend-count when gdb notices the threads."), } + +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_gnu_nat; + void _initialize_gnu_nat (void) { -- 2.30.2