summaryrefslogtreecommitdiff
path: root/tests/tremquo.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-13 10:11:25 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-13 10:11:25 +0000
commit8a934c2ed02e1ebf71cfffd84382df6f18b385df (patch)
tree0c2fc404a8006e7c55a0bdb1f7a629fba76a52d4 /tests/tremquo.c
parentf8cd5fd0795b303ee173fda55bacb9ccc8266435 (diff)
downloadmpfr-8a934c2ed02e1ebf71cfffd84382df6f18b385df.tar.gz
[tests] Avoid warning due to -Wunused-but-set-variable (from future
GCC 4.6). Only let the one from tsubnormal.c because it's a TODO. * mpf_compat.h: use the variables, that are there for prototype checking. * tpow.c, tpow_z.c: test the ternary value. * tremquo.c: removed inex variables (the bug due to the MPFR value). * tset.c: test the ternary value. * tset_ld.c: removed the long double variable (it cannot be tested in a portable way and the bug was an assertion failure). * tzeta_ui.c: removed the inexact variable (not really useful here). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7077 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tremquo.c')
-rw-r--r--tests/tremquo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/tremquo.c b/tests/tremquo.c
index 7ef8647ff..4e0c94ae8 100644
--- a/tests/tremquo.c
+++ b/tests/tremquo.c
@@ -29,7 +29,6 @@ static void
bug20090227 (void)
{
mpfr_t x, y, r1, r2;
- int inex1, inex2;
mpfr_init2 (x, 118);
mpfr_init2 (y, 181);
@@ -37,9 +36,9 @@ bug20090227 (void)
mpfr_init2 (r2, 140);
mpfr_set_si (x, -1, MPFR_RNDN);
mpfr_set_str_binary (y, "1.100100100001111110110101010001000100001011010001100001000110100110001001100011001100010100010111000000011011100000111001101000100101001000000100100111000001000100010100110011111010");
- inex1 = mpfr_remainder (r1, x, y, MPFR_RNDU);
+ mpfr_remainder (r1, x, y, MPFR_RNDU);
/* since the quotient is -1, r1 is the rounding of x+y */
- inex2 = mpfr_add (r2, x, y, MPFR_RNDU);
+ mpfr_add (r2, x, y, MPFR_RNDU);
if (mpfr_cmp (r1, r2))
{
printf ("Error in mpfr_remainder (bug20090227)\n");