This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PowerPC: __fe_[no]mask_env cleanup
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 11 Nov 2013 11:27:01 -0200
- Subject: Re: [PATCH] PowerPC: __fe_[no]mask_env cleanup
- Authentication-results: sourceware.org; auth=none
- References: <52723D11 dot 7070205 at linux dot vnet dot ibm dot com>
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
>