Blame SOURCES/glibc-rh1505492-unused-3.patch

c6d234
Partial backport of:
c6d234
c6d234
commit 7a2ad8cf392acfcaef319e722dda9101d4d8b6bd
c6d234
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
c6d234
Date:   Wed Nov 13 06:45:19 2013 -0600
c6d234
c6d234
    PowerPC: Fix __fe_mask_env export
c6d234
    
c6d234
    This patch does not export __fe_mask_env anymore, only providing a
c6d234
    compatibility symbol. It fixes BZ#14143.
c6d234
c6d234
Only the removal of the unused variable is included here.
c6d234
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
c6d234
index e4bcd9800ddf1f33..dd57b9220317a075 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
c6d234
@@ -27,9 +27,8 @@ const fenv_t *
c6d234
 __fe_mask_env (void)
c6d234
 {
c6d234
 #if defined PR_SET_FPEXC && defined PR_FP_EXC_DISABLED
c6d234
-  int result;
c6d234
   INTERNAL_SYSCALL_DECL (err);
c6d234
-  result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
c6d234
+  INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
c6d234
 #else
c6d234
   __set_errno (ENOSYS);
c6d234
 #endif
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
c6d234
index 46b94789801b73e5..03eb855d3bef33e5 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
c6d234
@@ -27,9 +27,8 @@ const fenv_t *
c6d234
 __fe_nomask_env (void)
c6d234
 {
c6d234
 #if defined PR_SET_FPEXC && defined PR_FP_EXC_PRECISE
c6d234
-  int result;
c6d234
   INTERNAL_SYSCALL_DECL (err);
c6d234
-  result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
c6d234
+  INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
c6d234
 #else
c6d234
   __set_errno (ENOSYS);
c6d234
 #endif