]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 8 Mar 2012 22:54:30 +0000 (22:54 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 8 Mar 2012 22:54:30 +0000 (22:54 +0000)
Fix -Wmissing-prototypes build.
* arm-linux-nat.c (get_thread_id): Make it static.
* xtensa-linux-nat.c (get_thread_id): Likewise.

gdb/ChangeLog
gdb/arm-linux-nat.c
gdb/xtensa-linux-nat.c

index 133a71fef29907fdc14dccb6a10d7c6b54c5bfce..b77aaeda5dc81b34a1f0f43190414a4677e780d6 100644 (file)
@@ -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
index d5016196be9cfdfb75bfff48e09cd2c178bd5438..c5ce21ca0bee8d11f01e3db7002f688fec48f5fb 100644 (file)
@@ -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);
index 191ccefbf166267af823cea753f26bf1930c9ad1..4c7f0abcf35a7fef77dcb851c60aaf74775213d6 100644 (file)
@@ -46,7 +46,7 @@
    hardware-specific overlays.  */
 #include "xtensa-xtregs.c"
 
-int
+static int
 get_thread_id (ptid_t ptid)
 {
   int tid = TIDGET (ptid);