* fixed some compiler warnings

- except for script and sound all libs can now be compiled using -Werror (means they generate no warnings) and without -fpermissive except for the files generated by flex
  - netplay/netplay.c: changed variable size from unsigned to signed according to SDL spec ( http://www.libsdl.org/cgi/docwiki.cgi/SDLNet_5fTCP_5fSend )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@958 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-01-04 20:24:26 +00:00
parent 851b570bc5
commit e2de942f02
2 changed files with 4 additions and 4 deletions

View File

@ -656,7 +656,7 @@ UDWORD NETgetRecentPacketsRecvd(void)
// Send a message to a player, option to guarantee message
BOOL NETsend(NETMSG *msg, UDWORD player, BOOL guarantee)
{
unsigned int size;
int size;
debug( LOG_NET, "NETsend\n" );
@ -703,7 +703,7 @@ BOOL NETsend(NETMSG *msg, UDWORD player, BOOL guarantee)
// broadcast a message to all players.
BOOL NETbcast(NETMSG *msg, BOOL guarantee)
{
unsigned int size;
int size;
if(!NetPlay.bComms)
{

View File

@ -6,7 +6,7 @@
typedef struct RPL_chunk_info_t {
int offset;
int video_size;
unsigned int video_size;
int audio_size;
} RPL_chunk_info_t;
@ -30,7 +30,7 @@ typedef struct RPL {
unsigned int current_sound_frame;
// Chunk-related info
int nb_chunks;
unsigned int nb_chunks;
RPL_chunk_info_t* chunks;
int ocs;
int ecs;