diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-05-02 23:18:36 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-05-02 23:18:36 +0000 |
commit | 02f1df11e4a354648db661822b555b97507e0bf8 (patch) | |
tree | 86bd10c0017f034ea05db3e1b6f09617d4c9975a | |
parent | 390235306b235ecf5010b2cdfc1ec53a6ed9e7e4 (diff) | |
download | gdb-02f1df11e4a354648db661822b555b97507e0bf8.zip gdb-02f1df11e4a354648db661822b555b97507e0bf8.tar.gz gdb-02f1df11e4a354648db661822b555b97507e0bf8.tar.bz2 |
Fix -Wmissing-prototypes errors in sol-thread.c
gdb/ChangeLog:
* sol-thread.c (solaris_pid_to_str): Make static.
(_initialize_sol_thread): Add prototype.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sol-thread.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0601fa..0bb6d75 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx> diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index bfa1162..01bc2e0 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -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) { |