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