summaryrefslogtreecommitdiff
path: root/lngamma.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-18 23:30:59 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-18 23:30:59 +0000
commite191508db5d73b86815e952c5269d2d07b16ab09 (patch)
treed97351a33c40284d80910803d62c125bb16940b6 /lngamma.c
parentd3a66785087e65de58afeba53aaee0d7f4a02431 (diff)
downloadmpfr-e191508db5d73b86815e952c5269d2d07b16ab09.tar.gz
mpfr-impl.h: defined macro INITIALIZED to declare that some variable
is initialized before being used. README.dev: described the use of this macro. lngamma.c: replaced the dummy initialization by this macro. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5534 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'lngamma.c')
-rw-r--r--lngamma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lngamma.c b/lngamma.c
index 9c816cdbf..96cee31df 100644
--- a/lngamma.c
+++ b/lngamma.c
@@ -157,8 +157,7 @@ GAMMA_FUNC (mpfr_ptr y, mpfr_srcptr z0, mp_rnd_t rnd)
mp_prec_t precy, w; /* working precision */
mpfr_t s, t, u, v, z;
unsigned long m, k, maxm;
- mpz_t *B = NULL; /* Initialize to NULL to get rid of compiler warning
- with gcc <= 4.3. See README.dev file. */
+ mpz_t *INITIALIZED(B); /* variable B declared as initialized */
int inexact, compared;
mp_exp_t err_s, err_t;
unsigned long Bm = 0; /* number of allocated B[] */