From 66f5e6513c46dffcb40b216e3709b84ab5fbc392 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 Apr 2012 14:23:05 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ tests/test-rint.c | 3 +++ tests/test-rintf.c | 3 +++ tests/test-rintl.c | 3 +++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index c99459abe..bead9a653 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2012-04-22 Bruno Haible + 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 + users.txt: Update. * users.txt: Add freedink, wdiff. Update URLs for projects that have switched from CVS to git, bzr, or svn. diff --git a/tests/test-rint.c b/tests/test-rint.c index 869a0a123..ce0b53469 100644 --- a/tests/test-rint.c +++ b/tests/test-rint.c @@ -32,6 +32,9 @@ SIGNATURE_CHECK (rint, double, (double)); #include "nan.h" #include "macros.h" +#undef INFINITY +#undef NAN + #define DOUBLE double #define ISNAN isnand #define INFINITY Infinityd () diff --git a/tests/test-rintf.c b/tests/test-rintf.c index cd8951af9..f22f83fda 100644 --- a/tests/test-rintf.c +++ b/tests/test-rintf.c @@ -32,6 +32,9 @@ SIGNATURE_CHECK (rintf, float, (float)); #include "nan.h" #include "macros.h" +#undef INFINITY +#undef NAN + #define DOUBLE float #define ISNAN isnanf #define INFINITY Infinityf () diff --git a/tests/test-rintl.c b/tests/test-rintl.c index d7f861675..bed575610 100644 --- a/tests/test-rintl.c +++ b/tests/test-rintl.c @@ -33,6 +33,9 @@ SIGNATURE_CHECK (rintl, long double, (long double)); #include "nan.h" #include "macros.h" +#undef INFINITY +#undef NAN + #define DOUBLE long double #define ISNAN isnanl #define INFINITY Infinityl () -- 2.11.0