1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

do not lint cast to fuse_fill_dir_flags

The allowed value of 0 is not part of the enum definition.

Signed-off-by: Falk Werner <falk.werner@gmx.net>
This commit is contained in:
Falk Werner 2024-10-11 16:34:01 +02:00 committed by Falk Werner
parent fdd8dbe51d
commit bd49d69b09

View File

@ -186,11 +186,11 @@ static int fs_readdir(char const * path, void * buffer,
auto const result = fs->readdir(path, names);
if (0 == result)
{
filler(buffer, ".", nullptr, 0, static_cast<fuse_fill_dir_flags>(0));
filler(buffer, "..", nullptr, 0, static_cast<fuse_fill_dir_flags>(0));
filler(buffer, ".", nullptr, 0, static_cast<fuse_fill_dir_flags>(0)); // NOLINT
filler(buffer, "..", nullptr, 0, static_cast<fuse_fill_dir_flags>(0)); // NOLINT
for (auto const & name: names)
{
filler(buffer, name.c_str(), nullptr, 0, static_cast<fuse_fill_dir_flags>(0));
filler(buffer, name.c_str(), nullptr, 0, static_cast<fuse_fill_dir_flags>(0)); // NOLINT
}
}