[wpiutil] Fix clang-tidy warnings (#5406)

This commit is contained in:
Tyler Veness
2023-06-20 10:55:05 -07:00
committed by GitHub
parent c4dc697192
commit eb3810c765
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ TEST(ScopeExitTest, Release) {
{
wpi::scope_exit exit1{[&] { ++exitCount; }};
wpi::scope_exit exit2 = std::move(exit1);
// NOLINTNEXTLINE (clang-analyzer-cplusplus.Move)
wpi::scope_exit exit3 = std::move(exit1);
EXPECT_EQ(0, exitCount);
}

View File

@@ -28,7 +28,7 @@ TEST(SpinlockTest, Benchmark) {
// warmup
std::thread thr([]() {
int value = 0;
[[maybe_unused]] int value = 0;
auto start = high_resolution_clock::now();
for (int i = 0; i < 10000000; i++) {