fix warnings
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
void IncorrectActorParametersWarning( const ParsedCommand &command, int iMaxIndexAccessed )
|
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.",
|
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 );
|
LOG->Warn( sError );
|
||||||
HOOKS->MessageBoxOK( sError );
|
HOOKS->MessageBoxOK( sError );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
else // we have to check the history of grades to ensure they met the spec asked
|
||||||
{
|
{
|
||||||
LOG->Info("Checking Grade History");
|
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;
|
bool foundavalidgradeforstage = false;
|
||||||
for(unsigned d=info.grades.size()-1,g=g_vPlayedStageStats.size()-1;d>0;d--,g--)
|
for(unsigned d=info.grades.size()-1,g=g_vPlayedStageStats.size()-1;d>0;d--,g--)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ void LoadFromString( lua_State *L, const CString &str )
|
|||||||
static jmp_buf jbuf;
|
static jmp_buf jbuf;
|
||||||
static CString jbuf_error;
|
static CString jbuf_error;
|
||||||
|
|
||||||
int LuaPanic( lua_State *L )
|
static int LuaPanic( lua_State *L )
|
||||||
{
|
{
|
||||||
CString err;
|
CString err;
|
||||||
Lua::PopStack( L, err );
|
Lua::PopStack( L, err );
|
||||||
@@ -107,6 +107,7 @@ int LuaPanic( lua_State *L )
|
|||||||
* an exception from there. */
|
* an exception from there. */
|
||||||
jbuf_error = err;
|
jbuf_error = err;
|
||||||
longjmp( jbuf, 1 );
|
longjmp( jbuf, 1 );
|
||||||
|
return 0; // control never reaches here but quiets warning
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Lua::RunExpression( const CString &str )
|
bool Lua::RunExpression( const CString &str )
|
||||||
|
|||||||
Reference in New Issue
Block a user