fixed warning

This commit is contained in:
mrbesen 2021-09-07 02:05:18 +02:00
parent 489f8e38e2
commit 5435d54510
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ bool mrbesen::files::iterateFile(std::istream& file, fileLineCallback clb, bool
template<class Container>
bool mrbesen::files::scan(const std::string& path, std::insert_iterator<Container> 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