summaryrefslogtreecommitdiff
path: root/lngamma.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-05-21 07:01:17 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-05-21 07:01:17 +0000
commit4aa2e4229de04c3b3d3a6b3bd339a20cba1ea93e (patch)
tree44b83e87076766b959074490387e89caff0b7f36 /lngamma.c
parentd028776332821effd94d67cbcba8282e09e14126 (diff)
downloadmpfr-4aa2e4229de04c3b3d3a6b3bd339a20cba1ea93e.tar.gz
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
Diffstat (limited to 'lngamma.c')
-rw-r--r--lngamma.c3
1 files changed, 2 insertions, 1 deletions
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[] */