From fba99071f8d0e34c686210eaa449176cbbd7876a Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 25 Dec 2018 04:36:20 +0800 Subject: [PATCH] [Server] Fix warnings --- apps/openmw-mp/Script/LangMono/LangMono.cpp | 3 ++- apps/openmw-mp/Script/Script.cpp | 2 +- apps/openmw-mp/Script/ScriptFunction.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/openmw-mp/Script/LangMono/LangMono.cpp b/apps/openmw-mp/Script/LangMono/LangMono.cpp index 68e7abdd2..33a1314ac 100644 --- a/apps/openmw-mp/Script/LangMono/LangMono.cpp +++ b/apps/openmw-mp/Script/LangMono/LangMono.cpp @@ -63,7 +63,8 @@ boost::any LangMono::ObjectToAny(MonoObject *obj) case MONO_TYPE_ARRAY: case MONO_TYPE_SZARRAY: { - MonoArrayType *arrayType = mono_type_get_array_type(rawType); + //MonoArrayType *arrayType = mono_type_get_array_type(rawType); + break; } default: return boost::any(); diff --git a/apps/openmw-mp/Script/Script.cpp b/apps/openmw-mp/Script/Script.cpp index b660f4525..2ae2cf101 100644 --- a/apps/openmw-mp/Script/Script.cpp +++ b/apps/openmw-mp/Script/Script.cpp @@ -19,7 +19,7 @@ Script::ScriptList Script::scripts; std::string Script::moddir; bool Script::debugMode = false; -inline bool Load(Language *lang, const std::string &path) +inline void Load(Language *lang, const std::string &path) { try { diff --git a/apps/openmw-mp/Script/ScriptFunction.cpp b/apps/openmw-mp/Script/ScriptFunction.cpp index 2e7d0477a..0138ef4fb 100644 --- a/apps/openmw-mp/Script/ScriptFunction.cpp +++ b/apps/openmw-mp/Script/ScriptFunction.cpp @@ -81,7 +81,7 @@ boost::any ScriptFunction::Call(const vector &args) std::vector argList; argList.resize(args.size()); - for (int index = 0; index < args.size(); index++) + for (size_t index = 0; index < args.size(); index++) { switch (def[index]) {