From: Andreas Schwab Date: Fri, 4 Jan 2013 17:01:34 +0000 (+0100) Subject: Fix warnings in test-powerpc-snan.c X-Git-Tag: glibc-2.18~885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d643bac1f7b2f361576ce45523de7cf0bf5a69de;p=platform%2Fupstream%2Fglibc.git Fix warnings in test-powerpc-snan.c --- 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;