about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-12-04 14:40:17 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-12-04 14:40:17 +0000
commit20f0018d92270fba5eef06504a94a3822e0836d8 (patch)
tree283bbcd58b07a46bb6a2062edd425cf1000e0808
parentb3b099af0356831530f553934cdd90716137b1a3 (diff)
downloadglibc-20f0018d92270fba5eef06504a94a3822e0836d8.tar.gz
glibc-20f0018d92270fba5eef06504a94a3822e0836d8.tar.xz
glibc-20f0018d92270fba5eef06504a94a3822e0836d8.zip
Fix powerpc32 "set but not used" warnings from INTERNAL_SYSCALL_DECL.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3338301a2e..0785ab0f32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
+	(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
+
 	[BZ #14914]
 	* sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
 	whole low double instead of just low 47 bits when splitting values
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
index b0fa372d99..da25c01504 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
@@ -175,7 +175,7 @@
    an error return status).  */
 
 # undef INTERNAL_SYSCALL_DECL
-# define INTERNAL_SYSCALL_DECL(err) long int err
+# define INTERNAL_SYSCALL_DECL(err) long int err __attribute__ ((unused))
 
 # undef INTERNAL_SYSCALL
 # define INTERNAL_SYSCALL_NCS(name, err, nr, args...)			\