mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
For un-prototyped static inline functions declared in pthread_md.h on
ia64, powerpc, and sparc64, use ANSI function headers and specifically indicate the lack of arguments with 'void'. Otherwise, warnings are generated at WARNS=3, leading to a compile failure with -Werror.
This commit is contained in:
parent
d9e6294e4f
commit
22d661040e
2 changed files with 3 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ struct kcb {
|
|||
};
|
||||
|
||||
static __inline struct tcb *
|
||||
ia64_get_tcb()
|
||||
ia64_get_tcb(void)
|
||||
{
|
||||
register char *tp __asm("%r13");
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ struct kcb {
|
|||
#define TP_OFFSET 0x7008
|
||||
|
||||
static __inline char *
|
||||
ppc_get_tp()
|
||||
ppc_get_tp(void)
|
||||
{
|
||||
register char *r2 __asm__("%r2");
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ ppc_set_tp(char *tp)
|
|||
}
|
||||
|
||||
static __inline struct tcb *
|
||||
ppc_get_tcb()
|
||||
ppc_get_tcb(void)
|
||||
{
|
||||
return ((struct tcb *)(ppc_get_tp() - offsetof(struct tcb, tcb_tp)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue