Fix clang-tidy performance-unnecessary-copy-initialization warnings

Detected by clang-tidy-19
This commit is contained in:
Eduardo Almeida
2024-10-30 20:28:51 +00:00
parent 28895f59d5
commit 7c6706acaa
10 changed files with 14 additions and 14 deletions

View File

@@ -642,7 +642,7 @@ PacketTest::DoRun()
{
Packet c0 = *copy;
Packet c1 = *copy;
Packet c1 = *copy; // NOLINT(performance-unnecessary-copy-initialization)
c0 = c1;
CHECK(&c0, 1, E(1, 0, 1000));
CHECK(&c1, 1, E(1, 0, 1000));