From bd49d69b0987097d26d5cafb7230ff2e0f67a468 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Fri, 11 Oct 2024 16:34:01 +0200 Subject: [PATCH] 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 --- src/webfuse/fuse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webfuse/fuse.cpp b/src/webfuse/fuse.cpp index 89c49ea..65a4bd9 100644 --- a/src/webfuse/fuse.cpp +++ b/src/webfuse/fuse.cpp @@ -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(0)); - filler(buffer, "..", nullptr, 0, static_cast(0)); + filler(buffer, ".", nullptr, 0, static_cast(0)); // NOLINT + filler(buffer, "..", nullptr, 0, static_cast(0)); // NOLINT for (auto const & name: names) { - filler(buffer, name.c_str(), nullptr, 0, static_cast(0)); + filler(buffer, name.c_str(), nullptr, 0, static_cast(0)); // NOLINT } }