summaryrefslogtreecommitdiff
path: root/lngamma.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-05-22 11:05:19 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-05-22 11:05:19 +0000
commitaa9825b1f6f9525fb72ee20f2d5a99cd681c012b (patch)
tree458d9f422e74b8b2740ba3eec070c549906b807d /lngamma.c
parentc4a7352106c9b6e6b1faea61409146071bf00981 (diff)
downloadmpfr-aa9825b1f6f9525fb72ee20f2d5a99cd681c012b.tar.gz
Added comments about int i = i trick to avoid warning about uninitialized
variables. This has the advantage to generate no code, but works for gcc only. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5359 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'lngamma.c')
-rw-r--r--lngamma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lngamma.c b/lngamma.c
index e372716ee..bed802f0c 100644
--- a/lngamma.c
+++ b/lngamma.c
@@ -157,8 +157,9 @@ 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 false compiler warning
- with gcc <= 4.3 */
+ mpz_t *B = NULL; /* Initialize to NULL to get rid of false compiler warning
+ with gcc <= 4.3. Another way (with gcc), is to initialize
+ to B, but other compilers might not like it. */
int inexact, compared;
mp_exp_t err_s, err_t;
unsigned long Bm = 0; /* number of allocated B[] */