From 6795d2bc6f4fe6c1e6396c8939ccf96fb816168a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Me=C3=9Fmer?= Date: Mon, 19 Dec 2022 22:38:55 +0100 Subject: [PATCH] Silence clang warnings --- test/cryfs/impl/filesystem/CryNodeTest_RenameNested.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cryfs/impl/filesystem/CryNodeTest_RenameNested.cpp b/test/cryfs/impl/filesystem/CryNodeTest_RenameNested.cpp index ec28689b..13a15419 100644 --- a/test/cryfs/impl/filesystem/CryNodeTest_RenameNested.cpp +++ b/test/cryfs/impl/filesystem/CryNodeTest_RenameNested.cpp @@ -70,6 +70,7 @@ public: } } + // NOLINTNEXTLINE(misc-no-recursion) void create_path_if_not_exists(const bf::path& path) { if (!Exists(path)) { if (path.has_parent_path()) { @@ -124,7 +125,7 @@ TEST_P(CryNodeTest_RenameNested, Rename) { if (source_path == "/" || dest_path == "/") { expect_rename_fails(source_path, dest_path, EBUSY); - } else if (source_path == dest_path) { + } else if (source_path == dest_path) { // NOLINT(bugprone-branch-clone) expect_rename_succeeds(source_path, dest_path); } else if (boost::starts_with(source_path, dest_path)) { expect_rename_fails(source_path, dest_path, ENOTEMPTY);