From 0af34b1fcb721d2dee69142138ce8bb477b844ed Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Mon, 20 Aug 2012 23:59:50 +0000 Subject: [PATCH] Removes some unread variables reported by LLVM. Refs #1114 This was SVN commit r12501. --- source/network/NetServer.cpp | 1 - source/ps/Game.cpp | 2 +- source/ps/GameSetup/GameSetup.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/network/NetServer.cpp b/source/network/NetServer.cpp index 06c6573163..ac7fa5c7c3 100644 --- a/source/network/NetServer.cpp +++ b/source/network/NetServer.cpp @@ -526,7 +526,6 @@ void CNetServerWorker::AddPlayer(const CStr& guid, const CStrW& name) { // (do nothing) } - foundPlayerID = true; } PlayerAssignment assignment; diff --git a/source/ps/Game.cpp b/source/ps/Game.cpp index 1ca42f1143..1b8bbf4642 100644 --- a/source/ps/Game.cpp +++ b/source/ps/Game.cpp @@ -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) diff --git a/source/ps/GameSetup/GameSetup.cpp b/source/ps/GameSetup/GameSetup.cpp index d05dcfe0d9..10804c874d 100644 --- a/source/ps/GameSetup/GameSetup.cpp +++ b/source/ps/GameSetup/GameSetup.cpp @@ -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); } }