[PATCH] PowerPC: __fe_[no]mask_env cleanup
Adhemerval Zanella
azanella@linux.vnet.ibm.com
Mon Nov 11 13:27:00 GMT 2013
Ping. I think it is a quite simple patch, is it ok to apply?
On 31-10-2013 09:20, Adhemerval Zanella wrote:
> This patch remove compiler warnings regarding ununsed variables. Tested on
> PPC64. Ok to commit?
>
> ---
>
> 2013-10-31 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
>
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Remove
> compiler warnings regarding ununsed variables
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
>
> --
>
> diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
> index 2ab5855..1d579bf 100644
> --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
> +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
> @@ -27,9 +27,8 @@ const fenv_t *
> __fe_mask_env (void)
> {
> #if defined PR_SET_FPEXC && defined PR_FP_EXC_DISABLED
> - int result;
> INTERNAL_SYSCALL_DECL (err);
> - result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
> + INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
> #else
> __set_errno (ENOSYS);
> #endif
> diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
> index fd2ffb1..3bd514b 100644
> --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
> +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
> @@ -27,9 +27,8 @@ const fenv_t *
> __fe_nomask_env (void)
> {
> #if defined PR_SET_FPEXC && defined PR_FP_EXC_PRECISE
> - int result;
> INTERNAL_SYSCALL_DECL (err);
> - result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
> + INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
> #else
> __set_errno (ENOSYS);
> #endif
>
More information about the Libc-alpha
mailing list