Fix -Wmissing-prototypes errors in sol-thread.c
authorJoel Brobecker <brobecker@gnat.com>
Wed, 2 May 2012 23:18:36 +0000 (23:18 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 2 May 2012 23:18:36 +0000 (23:18 +0000)
gdb/ChangeLog:

        * sol-thread.c (solaris_pid_to_str): Make static.
        (_initialize_sol_thread): Add prototype.

gdb/ChangeLog
gdb/sol-thread.c

index c0601fa7dcc8403b20dffa1e07c4286635ea329c..0bb6d75d356c2603d24c37fc0bfdda12357aae2f 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c (solaris_pid_to_str): Make static.
+       (_initialize_sol_thread): Add prototype.
+
 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
 
        * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
index bfa116270a2ca048432ecb5f8ec105f73858eef4..01bc2e0545bd8a2cc234c1c2df2bd613d930bd50 100644 (file)
@@ -1132,7 +1132,7 @@ ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid,
 
 /* Convert PTID to printable form.  */
 
-char *
+static char *
 solaris_pid_to_str (struct target_ops *ops, ptid_t ptid)
 {
   static char buf[100];
@@ -1340,6 +1340,9 @@ init_sol_thread_ops (void)
   sol_thread_ops.to_magic = OPS_MAGIC;
 }
 
+/* Silence -Wmissing-prototypes.  */
+extern void _initialize_sol_thread (void);
+
 void
 _initialize_sol_thread (void)
 {
This page took 0.049155 seconds and 4 git commands to generate.