diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-05-20 09:31:17 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-05-20 09:31:17 +0000 |
commit | 653d07ec8c4b6cc0c23a04b8dd277feaadf46e98 (patch) | |
tree | 0974e66f8bd0b2b9ec705d08e2b069ef5da8ddb8 /round_near_x.c | |
parent | e7a47c456f3fa28cc5000045e5ae849bb7d21be2 (diff) | |
download | mpfr-653d07ec8c4b6cc0c23a04b8dd277feaadf46e98.tar.gz |
Avoid warnings "warning: label 'addoneulp_doit' defined but not used"
due to the use of MPFR_RNDRAW_GEN. Dummy source code is inserted, but
this is safe, clean (optimized away) and IMHO not too obtrusive.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5355 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'round_near_x.c')
-rw-r--r-- | round_near_x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/round_near_x.c b/round_near_x.c index 985d74cce..f76ea3fe3 100644 --- a/round_near_x.c +++ b/round_near_x.c @@ -186,8 +186,10 @@ mpfr_round_near_x (mpfr_ptr y, mpfr_srcptr v, mpfr_uexp_t err, int dir, } else goto addoneulp; - , if (MPFR_UNLIKELY (++MPFR_EXP (y) > __gmpfr_emax)) - mpfr_overflow (y, rnd, sign) + , + if (0) goto addoneulp_doit; /* dummy code / avoid warning */ + if (MPFR_UNLIKELY (++MPFR_EXP (y) > __gmpfr_emax)) + mpfr_overflow (y, rnd, sign) ); /* Fix it in some cases */ |