[torquedev] OS X warnings

Glen Beane glen.beane at gmail.com
Sun Feb 24 10:03:49 MST 2008


On 1/16/08, Glen Beane <glen.beane at gmail.com> wrote:
>
>
>
> 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




I just tried the latest 2.3.0 snapshot on my Leopard developer build and I
only got 2 warnings, both of which are easy to fix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20080224/01f85ade/attachment.html


More information about the torquedev mailing list