diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2013-01-04 18:01:34 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2013-01-04 19:04:08 +0100 |
commit | d643bac1f7b2f361576ce45523de7cf0bf5a69de (patch) | |
tree | e9352e7fc24031d353c935027e14da65f987bf68 | |
parent | e47686e96036b1d00c58ecd54baaafde468ef23d (diff) | |
download | glibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.zip glibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.tar.gz glibc-d643bac1f7b2f361576ce45523de7cf0bf5a69de.tar.bz2 |
Fix warnings in test-powerpc-snan.c
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/fpu/test-powerpc-snan.c | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -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 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 <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; |