diff --git a/tdutils/td/utils/port/path.h b/tdutils/td/utils/port/path.h index f7364894..404b662b 100644 --- a/tdutils/td/utils/port/path.h +++ b/tdutils/td/utils/port/path.h @@ -46,11 +46,11 @@ class WalkPath { enum class Type { EnterDir, ExitDir, NotDir }; template ()("", Type::ExitDir))> - static std::enable_if_t::value, Status> run(CSlice path, F &&func) TD_WARN_UNUSED_RESULT { + static TD_WARN_UNUSED_RESULT std::enable_if_t::value, Status> run(CSlice path, F &&func) { return do_run(path, func); } template ()("", Type::ExitDir))> - static std::enable_if_t::value, Status> run(CSlice path, F &&func) TD_WARN_UNUSED_RESULT { + static TD_WARN_UNUSED_RESULT std::enable_if_t::value, Status> run(CSlice path, F &&func) { return do_run(path, [&](CSlice name, Type type) { func(name, type); return Action::Continue;