warnings.patch dated 20070716 by Martin Koller.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2118 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-07-16 09:46:40 +00:00
parent 0a5464c191
commit 7fb85e80a6
4 changed files with 10 additions and 4 deletions

View File

@ -652,7 +652,7 @@ GAMECODE gameLoop(void)
void videoLoop(void)
{
bool bVolKilled = false;
float originalVolume;
float originalVolume = 0.0;
// There is something really odd here. - Per
static BOOL bActiveBackDrop = FALSE;

View File

@ -43,7 +43,9 @@
#include "formation.h"
#include "mapgrid.h"
static SDWORD factoryDeliveryPointCheck[MAX_PLAYERS][NUM_FLAG_TYPES][MAX_FACTORY];
#ifdef DEBUG
static SDWORD factoryDeliveryPointCheck[MAX_PLAYERS][NUM_FLAG_TYPES][MAX_FACTORY];
#endif
// the initial value for the object ID
#define OBJ_ID_INIT 20000
@ -66,7 +68,9 @@ FLAG_POSITION *apsFlagPosLists[MAX_PLAYERS];
BASE_OBJECT *psDestroyedObj=NULL;
/* Forward function declarations */
#ifdef DEBUG
static void objListIntegCheck(void);
#endif
/* Initialise the object heaps */
@ -935,6 +939,7 @@ BOOL checkValidId(UDWORD id)
// integrity check the lists
#ifdef DEBUG
static void objListIntegCheck(void)
{
SDWORD player;
@ -970,3 +975,4 @@ static void objListIntegCheck(void)
ASSERT( psCurr->died > 0, "objListIntegCheck: Object in destroyed list but not dead!" );
}
}
#endif

View File

@ -10420,7 +10420,7 @@ BOOL objectInRangeVis(BASE_OBJECT *psList, SDWORD x, SDWORD y, SDWORD range, SDW
BOOL scrPursueResearch(void)
{
RESEARCH *psResearch;
SDWORD foundIndex,player,cur,tempIndex,Stack[400];
SDWORD foundIndex = 0,player,cur,tempIndex,Stack[400];
UDWORD index;
SWORD top;

View File

@ -315,7 +315,7 @@ void initFactoryNumFlag(void)
void resetFactoryNumFlag(void)
{
STRUCTURE* psStruct;
uint8_t mask;
uint8_t mask = 0;
unsigned int i;
for(i = 0; i < MAX_PLAYERS; i++)