From dd43ef1c64267d9b9cf4100997617417b9fcc9b4 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Sun, 2 Sep 2018 21:11:03 -0500 Subject: [PATCH] fix switch warnings --- source/glest_game/game/commander.cpp | 3 +++ source/glest_game/game/script_manager.cpp | 2 ++ source/glest_game/global/core_data.cpp | 2 ++ source/glest_game/gui/gui.cpp | 3 +++ 4 files changed, 10 insertions(+) diff --git a/source/glest_game/game/commander.cpp b/source/glest_game/game/commander.cpp index 8b0b31f85..dc298e703 100644 --- a/source/glest_game/game/commander.cpp +++ b/source/glest_game/game/commander.cpp @@ -1393,6 +1393,9 @@ namespace } break; + default: + break; + } if (commandWasHandled == false) { diff --git a/source/glest_game/game/script_manager.cpp b/source/glest_game/game/script_manager.cpp index 9dd374591..0044fb8a5 100644 --- a/source/glest_game/game/script_manager.cpp +++ b/source/glest_game/game/script_manager.cpp @@ -3136,6 +3136,8 @@ namespace unit->setCurrField(value == 1 ? Glest::Game::Field::fAir : Glest::Game::Field::fLand); result = true; break; + default: + break; } } //printf("File: %s line: %d result: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__LINE__,result); diff --git a/source/glest_game/global/core_data.cpp b/source/glest_game/global/core_data.cpp index cc304cef2..aa66c612b 100644 --- a/source/glest_game/global/core_data.cpp +++ b/source/glest_game/global/core_data.cpp @@ -213,6 +213,8 @@ namespace Glest { case tsyst_healthbarBackgroundTexture: result = healthbarBackgroundTexture; break; + default: + break; //std::vector miscTextureList; } diff --git a/source/glest_game/gui/gui.cpp b/source/glest_game/gui/gui.cpp index f91f292d2..ac762a58d 100644 --- a/source/glest_game/gui/gui.cpp +++ b/source/glest_game/gui/gui.cpp @@ -1084,6 +1084,9 @@ namespace Glest { case crSomeFailed: console->addStdMessage("SomeOrdersFailed", result.second); break; + + default: + break; } }