build: Add Werror=range-loop-analysis

This commit is contained in:
MarcoFalke
2020-08-14 15:33:51 +02:00
parent 30dd562fd2
commit fa55c1d5fd
2 changed files with 2 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ bool ExecuteWalletToolFunc(const std::string& command, const std::string& name)
std::vector<bilingual_str> warnings;
bool ret = RecoverDatabaseFile(path, error, warnings);
if (!ret) {
for (const auto warning : warnings) {
for (const auto& warning : warnings) {
tfm::format(std::cerr, "%s\n", warning.original);
}
if (!error.empty()) {