Explicitly widen int types before casting to pointer types. On 64-bit
platforms the compiler warns about incompatible integer/pointer casts and on ia64 this generally is bad news. We know that what we're doing here is valid/correct, so suppress the warning. No functional change. Sleeps better: marcel
This commit is contained in:
parent
05fb8c3f73
commit
5858b0cea8
@ -195,8 +195,8 @@ _thr_sig_handler(int sig, siginfo_t *info, ucontext_t *ucp)
|
||||
!= 0) || (info == NULL))
|
||||
(*(sigfunc))(sig, info, ucp);
|
||||
else
|
||||
(*(sigfunc))(sig, (siginfo_t *)info->si_code,
|
||||
ucp);
|
||||
(*(sigfunc))(sig,
|
||||
(siginfo_t*)(intptr_t)info->si_code, ucp);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -253,7 +253,8 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info,
|
||||
(info == NULL))
|
||||
(*(sigfunc))(sig, info, ucp);
|
||||
else
|
||||
(*(sigfunc))(sig, (siginfo_t *)info->si_code, ucp);
|
||||
(*(sigfunc))(sig, (siginfo_t*)(intptr_t)info->si_code,
|
||||
ucp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -195,8 +195,8 @@ _thr_sig_handler(int sig, siginfo_t *info, ucontext_t *ucp)
|
||||
!= 0) || (info == NULL))
|
||||
(*(sigfunc))(sig, info, ucp);
|
||||
else
|
||||
(*(sigfunc))(sig, (siginfo_t *)info->si_code,
|
||||
ucp);
|
||||
(*(sigfunc))(sig,
|
||||
(siginfo_t*)(intptr_t)info->si_code, ucp);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -253,7 +253,8 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info,
|
||||
(info == NULL))
|
||||
(*(sigfunc))(sig, info, ucp);
|
||||
else
|
||||
(*(sigfunc))(sig, (siginfo_t *)info->si_code, ucp);
|
||||
(*(sigfunc))(sig, (siginfo_t*)(intptr_t)info->si_code,
|
||||
ucp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user