From d643bac1f7b2f361576ce45523de7cf0bf5a69de Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 4 Jan 2013 18:01:34 +0100 Subject: [PATCH] Fix warnings in test-powerpc-snan.c --- ChangeLog | 5 +++++ sysdeps/powerpc/fpu/test-powerpc-snan.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1cde0d..74f998d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-01-04 Andreas Schwab + * 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 diff --git a/sysdeps/powerpc/fpu/test-powerpc-snan.c b/sysdeps/powerpc/fpu/test-powerpc-snan.c index 0bf4eb1..e3bd47a 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 . */ -#define _GNU_SOURCE -#define __USE_GNU +#define _GNU_SOURCE 1 #include #include #include @@ -42,7 +41,7 @@ long double SNANl; static sigjmp_buf sigfpe_buf; void -init_signaling_nan() +init_signaling_nan (void) { union { double _ld16; -- 2.7.4