Search
lxdream.org :: lxdream :: r1074:397d77b6e346
lxdream 0.9.1
released Jun 29
Download Now
changeset1074:397d77b6e346
parent1073:92dfe34665ed
child1075:1a21750d300c
authornkeynes
dateTue Jul 21 20:53:05 2009 +1000 (14 years ago)
Fix more -Wall issues
- Configure was failing to check -rdynamic properly with --enable-strict-warn turned on
- Minor 64-bit cleanliness problems
configure
configure.in
src/gdrom/gdrom.c
src/pvr2/scene.c
src/sh4/sh4stat.in
1.1 --- a/configure Tue Jul 21 20:52:03 2009 +1000
1.2 +++ b/configure Tue Jul 21 20:53:05 2009 +1000
1.3 @@ -8084,7 +8084,7 @@
1.4 old_LDFLAGS="$LDFLAGS"
1.5 LDFLAGS="$LDFLAGS -rdynamic"
1.6 cat >conftest.$ac_ext <<_ACEOF
1.7 -int main(){}
1.8 +int main(){ return 0; }
1.9 _ACEOF
1.10 rm -f conftest.$ac_objext conftest$ac_exeext
1.11 if { (ac_try="$ac_link"
2.1 --- a/configure.in Tue Jul 21 20:52:03 2009 +1000
2.2 +++ b/configure.in Tue Jul 21 20:53:05 2009 +1000
2.3 @@ -160,7 +160,7 @@
2.4 AC_MSG_CHECKING([if linker accepts -rdynamic])
2.5 old_LDFLAGS="$LDFLAGS"
2.6 LDFLAGS="$LDFLAGS -rdynamic"
2.7 - AC_LINK_IFELSE( [int main(){}], [
2.8 + AC_LINK_IFELSE( [int main(){ return 0; }], [
2.9 LXDREAMLDFLAGS="-rdynamic"
2.10 AC_MSG_RESULT([yes])
2.11 ], [
3.1 --- a/src/gdrom/gdrom.c Tue Jul 21 20:52:03 2009 +1000
3.2 +++ b/src/gdrom/gdrom.c Tue Jul 21 20:53:05 2009 +1000
3.3 @@ -21,6 +21,7 @@
3.4 #include <errno.h>
3.5 #include <ctype.h>
3.6 #include <glib/gutils.h>
3.7 +#include <netinet/in.h>
3.8 #include "gdrom/ide.h"
3.9 #include "gdrom/gdrom.h"
3.10 #include "gdrom/gddriver.h"
4.1 --- a/src/pvr2/scene.c Tue Jul 21 20:52:03 2009 +1000
4.2 +++ b/src/pvr2/scene.c Tue Jul 21 20:53:05 2009 +1000
4.3 @@ -814,7 +814,7 @@
4.4 fprintf( f, "Polygons: %d\n", pvr2_scene.poly_count );
4.5 for( i=0; i<pvr2_scene.poly_count; i++ ) {
4.6 struct polygon_struct *poly = &pvr2_scene.poly_array[i];
4.7 - fprintf( f, " %08X ", ((unsigned char *)poly->context) - pvr2_main_ram );
4.8 + fprintf( f, " %08X ", (uint32_t)(((unsigned char *)poly->context) - pvr2_main_ram) );
4.9 switch( poly->vertex_count ) {
4.10 case 3: fprintf( f, "Tri " ); break;
4.11 case 4: fprintf( f, "Quad " ); break;
5.1 --- a/src/sh4/sh4stat.in Tue Jul 21 20:52:03 2009 +1000
5.2 +++ b/src/sh4/sh4stat.in Tue Jul 21 20:53:05 2009 +1000
5.3 @@ -184,7 +184,7 @@
5.4 for( i=0; i<= I_UNDEF; i++ ) {
5.5 fprintf( out, "%-20s\t%d\t%.2f%%\n", sh4_stats_names[i], (uint32_t)sh4_stats[i], ((double)sh4_stats[i])*100.0/(double)sh4_stats_total );
5.6 }
5.7 - fprintf( out, "Total: %lld\n", sh4_stats_total );
5.8 + fprintf( out, "Total: %lld\n", (long long int)sh4_stats_total );
5.9 }
5.10
5.11 void FASTCALL sh4_stats_add( sh4_inst_id item )
.