mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 19:14:52 +08:00
Fix -Wmissing-prototypes errors in sol-thread.c
gdb/ChangeLog: * sol-thread.c (solaris_pid_to_str): Make static. (_initialize_sol_thread): Add prototype.
This commit is contained in:
parent
390235306b
commit
02f1df11e4
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user