1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed some of the warnings detected by CI run

This commit is contained in:
Ivan Savenko
2022-12-08 23:20:42 +02:00
parent facf77b3ae
commit db2a40600d
16 changed files with 51 additions and 36 deletions

View File

@@ -981,14 +981,14 @@ void CMapLoaderJson::readTerrainTile(const std::string & src, TerrainTile & tile
{
tile.roadType = const_cast<RoadType*>(VLC->terrainTypeHandler->getRoadByCode(typeCode));
}
catch (const std::exception& e) //it's not a road, it's a river
catch (const std::exception&) //it's not a road, it's a river
{
try
{
tile.riverType = const_cast<RiverType*>(VLC->terrainTypeHandler->getRiverByCode(typeCode));
hasRoad = false;
}
catch (const std::exception& e)
catch (const std::exception&)
{
throw std::runtime_error("Invalid river type in " + src);
}
@@ -1042,7 +1042,7 @@ void CMapLoaderJson::readTerrainTile(const std::string & src, TerrainTile & tile
tile.extTileFlags |= (flip << 2);
}
}
catch (const std::exception & e)
catch (const std::exception &)
{
logGlobal->error("Failed to read terrain tile: %s");
}