[torquedev] OS X warnings

Glen Beane glen.beane at gmail.com
Wed Jan 16 05:37:47 MST 2008


On Jan 16, 2008 12:00 AM, Garrick Staples <garrick at usc.edu> wrote:

> On Tue, Jan 15, 2008 at 11:02:02PM -0500, Glen Beane alleged:
> > Garrick,
> >
> > I noticed you committed a few "OS X warning fixes" to trunk
> >
> > are there any more warnings left?  I'm going to make some sample OS X
> > startup items for torque, so while I'm already working on torque on my
> OS X
> > box I can take a look at these as well.
>
> Yes, quite a few.  I just cleaned up the quickies.
>
> alnilam:~/torque/trunk-build garrick$ ../trunk/configure
> --disable-gcc-warnings CFLAGS="-W -Wall -Wno-unused-parameter
> -Wno-long-double -Wno-long-long -pedantic"
> checking build system type... powerpc-apple-darwin7.9.0
> ...
> Building components: server=yes mom=yes clients=yes
>                     gui=no drmaa=no pam=no
> PBS Machine type: darwin
> Remote copy: /usr/bin/scp -rpB
> PBS home: /var/spool/torque
> Default server: alnilam.usc.edu
> Unix Domain sockets: yes
> Tcl: -framework Tcl -lpthread -framework CoreFoundation
> Tk: disabled
>
> alnilam:~/torque/trunk-build garrick$ make -j6 > buildlog 2>&1 && grep
> warning buildlog
> ../../../../trunk/src/lib/Libdis/disp10d_.c:107: warning: floating
> constant exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disp10d_.c:115: warning: floating
> constant exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disp10l_.c:135: warning: floating
> constant exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disp10l_.c:158: warning: floating
> constant exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrf.c:299: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrd.c:132: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrd.c:132: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrd.c:138: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrd.c:138: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrf.c:333: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrf.c:333: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrf.c:339: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrf.c:339: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libdis/disrl_.c:289: warning: floating constant
> exceeds range of "double"
> ../../../../trunk/src/lib/Libnet/net_client.c:266: warning: implicit
> declaration of function `bindresvport'
>
> The floating constant warnings are becaue of HUGE_VAL being a long double.
>  I
> don't know if there is a good way to fix this without casting it
> everywhere.
>

me either.  that is a bit of a pain.

The bindresvport() warning sucks.  It exists in the standard library and
> works fine, but isn't declared anywhere in /usr/include.
>

not sure what to do here other than fill a bug report with Apple and put a
prototype of the function in net_client.c wrapped in a #ifdef TDARWIN

on OS X the manpage for bindresvport says

     #include <sys/types.h>
     include <netinet/in.h>

(I can also fill out a bug report for the missing '#' while I am at it :P )

but there isn't a prototype for the function anywhere in netinet/in.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20080116/3c42d5fa/attachment.html


More information about the torquedev mailing list