[torquedev] OS X warnings
Garrick Staples
garrick at usc.edu
Tue Jan 15 22:00:23 MST 2008
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.
The bindresvport() warning sucks. It exists in the standard library and
works fine, but isn't declared anywhere in /usr/include.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20080115/6a7db4e8/attachment.bin
More information about the torquedev
mailing list