about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2013-01-04 18:01:34 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2013-01-04 19:04:08 +0100
commitd643bac1f7b2f361576ce45523de7cf0bf5a69de (patch)
treee9352e7fc24031d353c935027e14da65f987bf68
parente47686e96036b1d00c58ecd54baaafde468ef23d (diff)
downloadglibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.tar.gz
glibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.tar.xz
glibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.zip
Fix warnings in test-powerpc-snan.c
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/fpu/test-powerpc-snan.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b1cde0d9c0..74f998dde3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
 
+	* sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
+	1 to avoid redefinition warning.
+	(__USE_GNU): Don't define.
+	(init_signaling_nan): Protoize.
+
 	* sysdeps/powerpc/fpu/libm-test-ulps: Update.
 
 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
diff --git a/sysdeps/powerpc/fpu/test-powerpc-snan.c b/sysdeps/powerpc/fpu/test-powerpc-snan.c
index 0bf4eb1d5f..e3bd47abaf 100644
--- a/sysdeps/powerpc/fpu/test-powerpc-snan.c
+++ b/sysdeps/powerpc/fpu/test-powerpc-snan.c
@@ -17,8 +17,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#define _GNU_SOURCE
-#define __USE_GNU
+#define _GNU_SOURCE 1
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
@@ -42,7 +41,7 @@ long double SNANl;
 static sigjmp_buf sigfpe_buf;
 
 void
-init_signaling_nan()
+init_signaling_nan (void)
 {
     union {
 	double _ld16;