mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpiutil] Fix clang-tidy warnings (#5406)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user