- fixed compiler warnings in linux 32 gcc

This commit is contained in:
Mark Vejvoda 2013-11-17 08:44:47 +00:00
parent 9a03528ee8
commit d0ac27353a
2 changed files with 4 additions and 4 deletions

View File

@ -389,7 +389,7 @@ void FactionThread::execute() {
bool changedActiveCommand = unit->isChangedActiveCommand();
char szBuf[8096]="";
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %ld speed: %ld changedActiveCommand: %d df: %ld hf: %ld",update,updateProgressValue,speed,changedActiveCommand,df,hf);
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: " MG_I64_SPECIFIER " speed: " MG_I64_SPECIFIER " changedActiveCommand: %d df: " MG_I64_SPECIFIER " hf: " MG_I64_SPECIFIER,update,updateProgressValue,speed,changedActiveCommand,df,hf);
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
}
@ -415,7 +415,7 @@ void FactionThread::execute() {
bool changedActiveCommand = unit->isChangedActiveCommand();
char szBuf[8096]="";
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %ld speed: %ld changedActiveCommand: %d df: %ld hf: %ld",update,updateProgressValue,speed,changedActiveCommand,df,hf);
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: " MG_I64_SPECIFIER " speed: " MG_I64_SPECIFIER " changedActiveCommand: %d df: " MG_I64_SPECIFIER " hf: " MG_I64_SPECIFIER,update,updateProgressValue,speed,changedActiveCommand,df,hf);
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
}
}

View File

@ -5225,7 +5225,7 @@ Checksum Unit::getCRC() {
}
//WaypointPath waypointPath;
if(consoleDebug) printf("#11 Unit: %d CRC: %u commands.size(): %ld\n",id,crcForUnit.getSum(),commands.size());
if(consoleDebug) printf("#11 Unit: %d CRC: %u commands.size(): " MG_SIZE_T_SPECIFIER "\n",id,crcForUnit.getSum(),commands.size());
//Commands commands;
if(commands.empty() == false) {
@ -5241,7 +5241,7 @@ Checksum Unit::getCRC() {
//Observers observers;
//crcForUnit.addInt64((int64)observers.size());
if(consoleDebug) printf("#11 Unit: %d CRC: %u damageParticleSystems.size(): %ld\n",id,crcForUnit.getSum(),damageParticleSystems.size());
if(consoleDebug) printf("#11 Unit: %d CRC: %u damageParticleSystems.size(): " MG_SIZE_T_SPECIFIER "\n",id,crcForUnit.getSum(),damageParticleSystems.size());
//vector<UnitParticleSystem*> unitParticleSystems;
//vector<UnitParticleSystemType*> queuedUnitParticleSystemTypes;