From 4e841acf4ef82a84a90d18497ba80bce6ef8c8f8 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 8 Mar 2012 22:54:30 +0000 Subject: gdb/ Fix -Wmissing-prototypes build. * arm-linux-nat.c (get_thread_id): Make it static. * xtensa-linux-nat.c (get_thread_id): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/arm-linux-nat.c | 2 +- gdb/xtensa-linux-nat.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 133a71f..b77aaed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-03-08 Jan Kratochvil + + Fix -Wmissing-prototypes build. + * arm-linux-nat.c (get_thread_id): Make it static. + * xtensa-linux-nat.c (get_thread_id): Likewise. + 2012-03-08 Joel Brobecker * server.c (process_point_options): If a conditional expression diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index d501619..c5ce21c 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -77,7 +77,7 @@ extern int arm_apcs_32; individual thread (process) ID. get_thread_id () is used to get the thread id if it's available, and the process id otherwise. */ -int +static int get_thread_id (ptid_t ptid) { int tid = TIDGET (ptid); diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 191ccef..4c7f0ab 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -46,7 +46,7 @@ hardware-specific overlays. */ #include "xtensa-xtregs.c" -int +static int get_thread_id (ptid_t ptid) { int tid = TIDGET (ptid); -- cgit v1.1