This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix warnings in test-powerpc-snan.c
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Fri, 04 Jan 2013 19:09:11 +0100
- Subject: [PATCH] Fix warnings in test-powerpc-snan.c
I've checked this in to fix two warnings in test-powerpc-snan.c. Also,
defining __USE_GNU is a big no-no.
Andreas.
* 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.
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;
--
1.8.1
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."