Karim BELABAS on Thu, 10 Jul 2003 19:18:27 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Compiler warnings


On Wed, 9 Jul 2003 justin@mac.com wrote:
> I installed from CVS yesterday, and built on Mac OS X, with gcc 3.3.
> There were no real glitches, but I got two warnings which seemed a bit
> odd:
>
> ../src/kernel/gmp/mp.c: In function `umodiu':
> ../src/kernel/gmp/mp.c:1085: warning: signed and unsigned type in
> conditional expression

Minor. Should be fixed in CVS now.

> ../src/language/init.c: In function `pari_init_stackcheck':
> ../src/language/init.c:224: warning: comparison is always false due to
> limited range of data type

Weird. I guess it's the

  size == RLIM_INFINITY

test. What's RLIM_INFINITY on your system ? ( in /usr/include/sys/resource.h
presumably ).

In any case, I don't know whether it's a real problem. How does gp react to
the following:

  dive(n) = dive(n+1)
  dive(0)

??

    Karim.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425   Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]