diff options
| author | Alexander Gavrilov | 2012-04-20 13:30:37 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-20 13:30:37 +0400 |
| commit | 0a6982f4041f43d571bd2690f148ff369f2d8038 (patch) | |
| tree | 13d60514e341a3bafa36ffa7b8391d1eb5956e38 /plugins/burrows.cpp | |
| parent | d95cc3435fe249e1c86e5af36b8a10e9009edd97 (diff) | |
| download | dfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.gz dfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.bz2 dfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.xz | |
Enable warnings correctly on linux and fix a lot of them.
Diffstat (limited to 'plugins/burrows.cpp')
| -rw-r--r-- | plugins/burrows.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/burrows.cpp b/plugins/burrows.cpp index a629e30c..8080710c 100644 --- a/plugins/burrows.cpp +++ b/plugins/burrows.cpp @@ -604,7 +604,7 @@ static command_result burrow(color_ostream &out, vector <string> ¶meters) bool state = (cmd == "enable"); - for (int i = 1; i < parameters.size(); i++) + for (size_t i = 1; i < parameters.size(); i++) { string &option = parameters[i]; @@ -619,7 +619,7 @@ static command_result burrow(color_ostream &out, vector <string> ¶meters) if (parameters.size() < 2) return CR_WRONG_USAGE; - for (int i = 1; i < parameters.size(); i++) + for (size_t i = 1; i < parameters.size(); i++) { auto target = findByName(out, parameters[i]); if (!target) @@ -642,7 +642,7 @@ static command_result burrow(color_ostream &out, vector <string> ¶meters) bool enable = (cmd != "remove-units"); - for (int i = 2; i < parameters.size(); i++) + for (size_t i = 2; i < parameters.size(); i++) { auto source = findByName(out, parameters[i]); if (!source) @@ -656,7 +656,7 @@ static command_result burrow(color_ostream &out, vector <string> ¶meters) if (parameters.size() < 2) return CR_WRONG_USAGE; - for (int i = 1; i < parameters.size(); i++) + for (size_t i = 1; i < parameters.size(); i++) { auto target = findByName(out, parameters[i]); if (!target) @@ -679,7 +679,7 @@ static command_result burrow(color_ostream &out, vector <string> ¶meters) bool enable = (cmd != "remove-tiles"); - for (int i = 2; i < parameters.size(); i++) + for (size_t i = 2; i < parameters.size(); i++) { if (setTilesByKeyword(target, parameters[i], enable)) continue; |
