diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-08-24 23:07:45 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-08-24 23:07:45 +0000 |
commit | 7954806cbe68abfa730bcbbe8336d36aa426b21b (patch) | |
tree | 7a7b2a0fea5b11a52081c0885b03963168f20fe7 /tests | |
parent | 0ffa417e1f336778536383228a477d874a1e084d (diff) | |
download | mpfr-7954806cbe68abfa730bcbbe8336d36aa426b21b.tar.gz |
tests/tgeneric.c: changed the way a warning with gcc 4.2+ is avoided
(r5335), as suggested by Manuel López-Ibáñez on GCC bug 36299.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5585 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tgeneric.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c index 215bf7a31..c7285d381 100644 --- a/tests/tgeneric.c +++ b/tests/tgeneric.c @@ -43,14 +43,16 @@ MA 02110-1301, USA. */ #define TEST_RANDOM_EMAX 255 #endif -/* The (void *) below is needed to avoid a warning with gcc 4.2+. */ +/* The (void *) below is needed to avoid a warning with gcc 4.2+ and functions + * with 2 arguments. See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36299>. + */ #define TGENERIC_FAIL(S, X, U) \ do \ { \ printf ("%s\nx = ", (S)); \ mpfr_out_str (stdout, 2, 0, (X), GMP_RNDN); \ printf ("\n"); \ - if (U != (void *) 0) \ + if ((void *) U != 0) \ { \ printf ("u = "); \ mpfr_out_str (stdout, 2, 0, (U), GMP_RNDN); \ |