This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] arm + xtensa: Fix -Wmissing-prototypes


Hi,

this code is not too great but that is offtopic now IMO.

Checked in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2012-03/msg00141.html

--- src/gdb/ChangeLog	2012/03/08 22:19:53	1.13982
+++ src/gdb/ChangeLog	2012/03/08 22:54:29	1.13983
@@ -1,3 +1,9 @@
+2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	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  <brobecker@adacore.com>
 
 	* server.c (process_point_options): If a conditional expression
--- src/gdb/arm-linux-nat.c	2012/01/04 08:16:56	1.52
+++ src/gdb/arm-linux-nat.c	2012/03/08 22:54:30	1.53
@@ -77,7 +77,7 @@
    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);
--- src/gdb/xtensa-linux-nat.c	2012/01/04 08:27:58	1.6
+++ src/gdb/xtensa-linux-nat.c	2012/03/08 22:54:30	1.7
@@ -46,7 +46,7 @@
    hardware-specific overlays.  */
 #include "xtensa-xtregs.c"
 
-int
+static int
 get_thread_id (ptid_t ptid)
 {
   int tid = TIDGET (ptid);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]