fix warnings

This commit is contained in:
Steve Checkoway
2004-02-24 08:00:04 +00:00
parent f48728e003
commit 03499669bd
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
void IncorrectActorParametersWarning( const ParsedCommand &command, int iMaxIndexAccessed )
{
const CString sError = ssprintf( "Actor::HandleCommand: Wrong number of parameters in command '%s'. Expected %d but there are %u.",
command.GetOriginalCommandString().c_str(), iMaxIndexAccessed+1, command.vTokens.size() );
command.GetOriginalCommandString().c_str(), iMaxIndexAccessed+1, unsigned(command.vTokens.size()) );
LOG->Warn( sError );
HOOKS->MessageBoxOK( sError );
}
+2 -1
View File
@@ -527,7 +527,8 @@ void ConditionalBGA::CheckBgaRequirements(BgaCondInfo info)
else // we have to check the history of grades to ensure they met the spec asked
{
LOG->Info("Checking Grade History");
LOG->Info("Stage Stats Size: %d NumConditionalGrades: %d",g_vPlayedStageStats.size(),info.grades.size());
LOG->Info("Stage Stats Size: %u NumConditionalGrades: %u",
unsigned(g_vPlayedStageStats.size()), unsigned(info.grades.size()));
bool foundavalidgradeforstage = false;
for(unsigned d=info.grades.size()-1,g=g_vPlayedStageStats.size()-1;d>0;d--,g--)
{
+2 -1
View File
@@ -97,7 +97,7 @@ void LoadFromString( lua_State *L, const CString &str )
static jmp_buf jbuf;
static CString jbuf_error;
int LuaPanic( lua_State *L )
static int LuaPanic( lua_State *L )
{
CString err;
Lua::PopStack( L, err );
@@ -107,6 +107,7 @@ int LuaPanic( lua_State *L )
* an exception from there. */
jbuf_error = err;
longjmp( jbuf, 1 );
return 0; // control never reaches here but quiets warning
}
bool Lua::RunExpression( const CString &str )