From 4aa2e4229de04c3b3d3a6b3bd339a20cba1ea93e Mon Sep 17 00:00:00 2001 From: zimmerma Date: Wed, 21 May 2008 07:01:17 +0000 Subject: got rid of false (?) compiler warnings for uninitialized values -> we might want to revert this change if we find a better solution and/or if the problem is fixed in gcc git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5357 280ebfd0-de03-0410-8827-d642c229c3f4 --- lngamma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lngamma.c') diff --git a/lngamma.c b/lngamma.c index 6fdb01113..e372716ee 100644 --- a/lngamma.c +++ b/lngamma.c @@ -157,7 +157,8 @@ 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; + mpz_t *B = NULL; /* initialize to NULL to get rid of false compiler warning + with gcc <= 4.3 */ int inexact, compared; mp_exp_t err_s, err_t; unsigned long Bm = 0; /* number of allocated B[] */ -- cgit v1.2.1