From 5435d5451066f0524b2f68c5661a5ff55e63d3ee Mon Sep 17 00:00:00 2001 From: mrbesen Date: Tue, 7 Sep 2021 02:05:18 +0200 Subject: [PATCH] fixed warning --- src/files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.cpp b/src/files.cpp index d1b7c05..6f322ec 100644 --- a/src/files.cpp +++ b/src/files.cpp @@ -79,7 +79,7 @@ bool mrbesen::files::iterateFile(std::istream& file, fileLineCallback clb, bool template bool mrbesen::files::scan(const std::string& path, std::insert_iterator it, bool prefixdir, fileNameFilter fnf) { - return scan(path, [&](const std::string& p, FileType t){ it = p; }, prefixdir, fnf); + return scan(path, [&](const std::string& p, [[maybe_unused]] FileType t){ it = p; }, prefixdir, fnf); } //curently only these are supported, because iterators may break on others upon insertion