mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
libthr: fix warnings at WARNS=6
Fix more warnings about redundant declarations. Reviewed by: kib emaste MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10932
This commit is contained in:
parent
7fb37371e8
commit
718fb5ba5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318955
@ -72,8 +72,6 @@ _tcb_get(void)
|
||||
return (tcb);
|
||||
}
|
||||
|
||||
extern struct pthread *_thr_initial;
|
||||
|
||||
static __inline struct pthread *
|
||||
_get_curthread(void)
|
||||
{
|
||||
|
@ -75,8 +75,6 @@ _tcb_get(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
extern struct pthread *_thr_initial;
|
||||
|
||||
static __inline struct pthread *
|
||||
_get_curthread(void)
|
||||
{
|
||||
|
@ -120,8 +120,6 @@ _tcb_get(void)
|
||||
# endif /* ! __mips_n64 */
|
||||
#endif /* ! TLS_USE_SYSARCH */
|
||||
|
||||
extern struct pthread *_thr_initial;
|
||||
|
||||
static __inline struct pthread *
|
||||
_get_curthread(void)
|
||||
{
|
||||
|
@ -80,8 +80,6 @@ _tcb_get(void)
|
||||
return ((struct tcb *)(_tp - TP_OFFSET));
|
||||
}
|
||||
|
||||
extern struct pthread *_thr_initial;
|
||||
|
||||
static __inline struct pthread *
|
||||
_get_curthread(void)
|
||||
{
|
||||
|
@ -78,8 +78,6 @@ _tcb_get(void)
|
||||
return ((struct tcb *)(_tp - TP_OFFSET));
|
||||
}
|
||||
|
||||
extern struct pthread *_thr_initial;
|
||||
|
||||
static __inline struct pthread *
|
||||
_get_curthread(void)
|
||||
{
|
||||
|
@ -69,6 +69,9 @@ __NULLABILITY_PRAGMA_PUSH
|
||||
WEAK_REF(func, SYM_FBP10(sym)); \
|
||||
SYM_DEFAULT(sym, SYM_FBP10(sym), FBSDprivate_1.0)
|
||||
|
||||
struct pthread;
|
||||
extern struct pthread *_thr_initial __hidden;
|
||||
|
||||
#include "pthread_md.h"
|
||||
#include "thr_umtx.h"
|
||||
#include "thread_db.h"
|
||||
@ -711,7 +714,6 @@ extern int __isthreaded;
|
||||
*/
|
||||
|
||||
extern char *_usrstack __hidden;
|
||||
extern struct pthread *_thr_initial __hidden;
|
||||
|
||||
/* For debugger */
|
||||
extern int _libthr_debug;
|
||||
|
Loading…
Reference in New Issue
Block a user