[Server] Fix warnings

experimental-mono
Koncord 6 years ago
parent 20b328ec67
commit fba99071f8

@ -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();

@ -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
{

@ -81,7 +81,7 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
std::vector<void *> 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])
{

Loading…
Cancel
Save