From 494eee2ea76c90a9a3036a478495c87585cf8eaf Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sat, 28 Dec 2019 19:32:46 +0100 Subject: [PATCH] Silence format warning --- src/misc/setup.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/misc/setup.cpp b/src/misc/setup.cpp index afc5c5a7..8b37e7eb 100644 --- a/src/misc/setup.cpp +++ b/src/misc/setup.cpp @@ -671,8 +671,11 @@ void Section_prop::PrintData(FILE* outfile) const { len = (*tel)->propname.length(); } - for(const_it tel = properties.begin();tel != properties.end();tel++) { - fprintf(outfile,"%-*s = %s\n", len, (*tel)->propname.c_str(), (*tel)->GetValue().ToString().c_str()); + for (const auto &tel : properties) { + fprintf(outfile, "%-*s = %s\n", + static_cast(len), + tel->propname.c_str(), + tel->GetValue().ToString().c_str()); } }