NOISSUE fix all sorts of warnings, enable Werror and pedantic

This commit is contained in:
Petr Mrázek
2018-06-28 23:18:45 +02:00
parent b5f636b3d5
commit 7fe94ca7b4
21 changed files with 55 additions and 49 deletions

View File

@ -275,7 +275,7 @@ static QString read_string (nbt::value& parent, const char * name, const QString
qWarning() << "NBT tag" << name << "could not be converted to string. Defaulting to" << fallback;
return fallback;
}
};
}
static int64_t read_long (nbt::value& parent, const char * name, const int64_t & fallback = 0)
{
@ -301,7 +301,7 @@ static int64_t read_long (nbt::value& parent, const char * name, const int64_t &
qWarning() << "NBT tag" << name << "could not be converted to long. Defaulting to" << fallback;
return fallback;
}
};
}
void World::loadFromLevelDat(QByteArray data)
{