You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by cf...@apache.org on 2022/04/28 22:22:18 UTC
[mesos] 02/03: Fixed some clang-tidy warnings: disable lint for self-assignment test.
This is an automated email from the ASF dual-hosted git repository.
cfnatali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 9cbc4d9ba61c0fb519ab3c6b5152f9eaed0b3a0b
Author: Charles-Francois Natali <cf...@gmail.com>
AuthorDate: Tue Apr 26 23:29:48 2022 +0100
Fixed some clang-tidy warnings: disable lint for self-assignment test.
---
3rdparty/stout/tests/linkedhashmap_tests.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/3rdparty/stout/tests/linkedhashmap_tests.cpp b/3rdparty/stout/tests/linkedhashmap_tests.cpp
index e9179ded2..b72c6fb8e 100644
--- a/3rdparty/stout/tests/linkedhashmap_tests.cpp
+++ b/3rdparty/stout/tests/linkedhashmap_tests.cpp
@@ -239,7 +239,7 @@ TEST(LinkedHashMapTest, Assignment)
// Test self-assignment.
copy = map;
- map = map;
+ map = map; // NOLINT(clang-diagnostic-self-assign-overloaded)
EXPECT_EQ(copy.keys(), map.keys());
EXPECT_EQ(copy.values(), map.values());