From 71976e927cca43b970cb659c03fd6908c352ea3d Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 15 Oct 2024 14:15:36 -0500 Subject: Style fixes for clang tidy. --- test/test_directory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test_directory.cpp b/test/test_directory.cpp index 3c43663..ff10c2d 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -20,7 +20,6 @@ #include "fud_directory.hpp" #include "fud_memory.hpp" #include "fud_string.hpp" -#include "test_common.hpp" #include "gtest/gtest.h" #include @@ -31,12 +30,13 @@ namespace fud { -int unlink_cb(const char* fpath, const struct stat* sb, int typeflag, struct FTW* ftwbuf) +int unlink_cb(const char* fpath, const struct stat* sb_unused, int typeflag, struct FTW* ftwbuf) { + static_cast(sb_unused); int retValue = remove(fpath); EXPECT_EQ(retValue, 0); - if (retValue) { + if (retValue != 0) { perror(fpath); } @@ -128,7 +128,7 @@ TEST(FudDirectory, Basic) break; } const auto dirEntry = *dirEntryOpt; - const auto expected = std::find_if( + const auto* expected = std::find_if( expectedFiles.begin(), expectedFiles.end(), [&dirEntry](const DirectoryEntry& entry) { return entry.name.compare(dirEntry.name) && entry.entryType == dirEntry.entryType; }); -- cgit v1.2.3