aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-08-14 15:33:51 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-08-14 15:27:38 +0200
commitfa55c1d5fdd88c4bc4d361da231cd63b20255b50 (patch)
tree15a92dd6b7fda9cbfd8bb68997ad964b962aa357 /src
parent30dd562fd2c58536fa026fff9853b8d825216b01 (diff)
build: Add Werror=range-loop-analysis
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallettool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp
index c1cba0fd13..9b51461843 100644
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -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()) {