From afbea19d346492282962c04e0ab30dc12beade16 Mon Sep 17 00:00:00 2001 From: Nado Date: Fri, 26 Aug 2016 18:49:34 +0200 Subject: [PATCH] Fix -Wunused-variable --- src/scriptengine/script_engine.cpp | 3 +-- src/states_screens/server_selection.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scriptengine/script_engine.cpp b/src/scriptengine/script_engine.cpp index 7bd4e7bd1..f946d131b 100644 --- a/src/scriptengine/script_engine.cpp +++ b/src/scriptengine/script_engine.cpp @@ -378,7 +378,7 @@ namespace Scripting Log::error("Scripting", "The script ended with an exception."); // Write some information about the script exception - asIScriptFunction *func = ctx->GetExceptionFunction(); + //asIScriptFunction *func = ctx->GetExceptionFunction(); //std::cout << "func: " << func->GetDeclaration() << std::endl; //std::cout << "modl: " << func->GetModuleName() << std::endl; //std::cout << "sect: " << func->GetScriptSectionName() << std::endl; @@ -520,7 +520,6 @@ namespace Scripting { if (m_callback_delegate != NULL) { - asIScriptEngine* engine = World::getWorld()->getScriptEngine()->getEngine(); m_callback_delegate->Release(); } } diff --git a/src/states_screens/server_selection.cpp b/src/states_screens/server_selection.cpp index b34869433..04101bf8e 100644 --- a/src/states_screens/server_selection.cpp +++ b/src/states_screens/server_selection.cpp @@ -241,7 +241,6 @@ void ServerSelection::onUpdate(float dt) m_server_list_widget->clear(); - ServersManager *manager = ServersManager::get(); loadList(); m_server_list_widget->addItem("spacer", L""); m_server_list_widget->addItem("loading",