From c2766d5da90eae2c1a456276c3b5e5824c957d61 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 15 Sep 2023 19:29:33 +0200 Subject: [PATCH] Fix warnings in automap.cpp --- Source/automap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/automap.cpp b/Source/automap.cpp index 53136fafe..0b87c717b 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -130,7 +130,7 @@ struct AutomapTile { // clang-format on }; - Flags flags; + Flags flags = {}; constexpr bool HasFlag(Flags test) const { @@ -761,8 +761,6 @@ void DrawCaveVertical(const Surface &out, Point center, AutomapTile tile, Automa if (tile.HasFlag(AutomapTile::Flags::HorizontalDoor)) { DrawMapVerticalDoor(out, center, neTile, colorBright, colorDim); } else { - AmWidthOffset w; - AmHeightOffset h; AmLineLength l; if (IsAnyOf(tile.type, AutomapTile::Types::CaveVerticalCross, AutomapTile::Types::CaveVerticalWoodCross)) { @@ -1443,6 +1441,8 @@ void InitAutomap() tileTypes[51] = { AutomapTile::Types::VerticalDiamond }; tileTypes[55] = { AutomapTile::Types::HorizontalDiamond }; break; + default: + break; } for (unsigned i = 0; i < tileCount; i++) { AutomapTypeTiles[i + 1] = tileTypes[i];