<br><br><div class="gmail_quote">On Jan 16, 2008 12:00 AM, Garrick Staples <<a href="mailto:garrick@usc.edu">garrick@usc.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jan 15, 2008 at 11:02:02PM -0500, Glen Beane alleged:<br><div><div></div><div class="Wj3C7c">> Garrick,<br>><br>> I noticed you committed a few "OS X warning fixes" to trunk<br>><br>> are there any more warnings left? I'm going to make some sample OS X
<br>> startup items for torque, so while I'm already working on torque on my OS X<br>> box I can take a look at these as well.<br><br></div></div>Yes, quite a few. I just cleaned up the quickies.<br><br>alnilam:~/torque/trunk-build garrick$ ../trunk/configure --disable-gcc-warnings CFLAGS="-W -Wall -Wno-unused-parameter -Wno-long-double -Wno-long-long -pedantic"
<br>checking build system type... powerpc-apple-darwin7.9.0<br>...<br>Building components: server=yes mom=yes clients=yes<br> gui=no drmaa=no pam=no<br>PBS Machine type: darwin<br>Remote copy: /usr/bin/scp -rpB
<br>PBS home: /var/spool/torque<br>Default server: <a href="http://alnilam.usc.edu" target="_blank">alnilam.usc.edu</a><br>Unix Domain sockets: yes<br>Tcl: -framework Tcl -lpthread -framework CoreFoundation<br>Tk: disabled
<br><br>alnilam:~/torque/trunk-build garrick$ make -j6 > buildlog 2>&1 && grep warning buildlog<br>../../../../trunk/src/lib/Libdis/disp10d_.c:107: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disp10d_.c:115: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disp10l_.c:135: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disp10l_.c:158: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disrf.c:299: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disrd.c:132: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disrd.c:132: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disrd.c:138: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disrd.c:138: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disrf.c:333: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disrf.c:333: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disrf.c:339: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libdis/disrf.c:339: warning: floating constant exceeds range of "double"
<br>../../../../trunk/src/lib/Libdis/disrl_.c:289: warning: floating constant exceeds range of "double"<br>../../../../trunk/src/lib/Libnet/net_client.c:266: warning: implicit declaration of function `bindresvport'
<br><br>The floating constant warnings are becaue of HUGE_VAL being a long double. I<br>don't know if there is a good way to fix this without casting it everywhere.<br></blockquote><div> <br>me either. that is a bit of a pain.
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The bindresvport() warning sucks. It exists in the standard library and<br>works fine, but isn't declared anywhere in /usr/include.
<br></blockquote></div><br>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<br><br>on OS X the manpage for bindresvport says
<br><br> #include <sys/types.h><br> include <netinet/in.h><br><br>(I can also fill out a bug report for the missing '#' while I am at it :P )<br><br>but there isn't a prototype for the function anywhere in netinet/in.h
<br>