summaryrefslogtreecommitdiff
path: root/tests/tset_ld.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/tset_ld.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/tset_ld.c')
-rw-r--r--tests/tset_ld.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/tset_ld.c b/tests/tset_ld.c
index 87b511cdb..6ed4f9960 100644
--- a/tests/tset_ld.c
+++ b/tests/tset_ld.c
@@ -147,12 +147,11 @@ static void
test_fixed_bugs (void)
{
mpfr_t x;
- long double d;
/* bug found by Steve Kargl (2009-03-14) */
mpfr_init2 (x, 64);
mpfr_set_ui_2exp (x, 1, -16447, MPFR_RNDN);
- d = mpfr_get_ld (x, MPFR_RNDN); /* an assertion failed in init2.c:50 */
+ mpfr_get_ld (x, MPFR_RNDN); /* an assertion failed in init2.c:50 */
mpfr_clear (x);
}