1
0
forked from 0ad/0ad

Removes some unread variables reported by LLVM. Refs #1114

This was SVN commit r12501.
This commit is contained in:
historic_bruno 2012-08-20 23:59:50 +00:00
parent 70c317b1b0
commit 0af34b1fcb
3 changed files with 2 additions and 3 deletions

View File

@ -526,7 +526,6 @@ void CNetServerWorker::AddPlayer(const CStr& guid, const CStrW& name)
{
// (do nothing)
}
foundPlayerID = true;
}
PlayerAssignment assignment;

View File

@ -205,7 +205,7 @@ PSRETURN CGame::ReallyStartGame()
JSBool ok = JS_GetProperty(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), "reallyStartGame", &fval);
ENSURE(ok);
if (ok && !JSVAL_IS_VOID(fval))
ok = JS_CallFunctionValue(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), fval, 0, NULL, &rval);
JS_CallFunctionValue(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), fval, 0, NULL, &rval);
}
if (g_NetClient)

View File

@ -1232,6 +1232,6 @@ void CancelLoad(const CStrW& message)
jsval msgval = ToJSVal(message);
if (ok && !JSVAL_IS_VOID(fval))
ok = JS_CallFunctionValue(cx, g_GUI->GetScriptObject(), fval, 1, &msgval, &rval);
JS_CallFunctionValue(cx, g_GUI->GetScriptObject(), fval, 1, &msgval, &rval);
}
}