changeset 16797:c4a7dd5a1c2c

rint* tests: Avoid gcc warnings. * tests/test-rint.c (INFINITY, NAN): Undefine before redefining. * tests/test-rintf.c (INFINITY, NAN): Likewise. * tests/test-rintl.c (INFINITY, NAN): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 Apr 2012 14:23:05 +0200
parents f15f29149749
children c8c585f9c2c7
files ChangeLog tests/test-rint.c tests/test-rintf.c tests/test-rintl.c
diffstat 4 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-04-22  Bruno Haible  <bruno@clisp.org>
 
+	rint* tests: Avoid gcc warnings.
+	* tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
+	* tests/test-rintf.c (INFINITY, NAN): Likewise.
+	* tests/test-rintl.c (INFINITY, NAN): Likewise.
+
+2012-04-21  Bruno Haible  <bruno@clisp.org>
+
 	users.txt: Update.
 	* users.txt: Add freedink, wdiff. Update URLs for projects that have
 	switched from CVS to git, bzr, or svn.
--- a/tests/test-rint.c
+++ b/tests/test-rint.c
@@ -32,6 +32,9 @@
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE double
 #define ISNAN isnand
 #define INFINITY Infinityd ()
--- a/tests/test-rintf.c
+++ b/tests/test-rintf.c
@@ -32,6 +32,9 @@
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE float
 #define ISNAN isnanf
 #define INFINITY Infinityf ()
--- a/tests/test-rintl.c
+++ b/tests/test-rintl.c
@@ -33,6 +33,9 @@
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE long double
 #define ISNAN isnanl
 #define INFINITY Infinityl ()