From 485c2ce2be5f8006a3ab27d13973288e75bfc51a Mon Sep 17 00:00:00 2001
From: Jorge Camarero Vera <jorge.camarero@cern.ch>
Date: Mon, 30 Jan 2023 16:38:37 +0100
Subject: [PATCH] Resolve "Problem with cppcheck"

---
 ReleaseNotes.md                         | 1 +
 objectstore/RetrieveQueueAlgorithms.hpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index cf05e8452f..51c39342d1 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -22,6 +22,7 @@
 - cta/CTA#238 - Compilation fails when using cta::common::Configuration::getConfEntInt(...)
 - cta/CTA#273 - Fix tape state change command idempotency when resetting REPACKING/BROKEN/PENDING
 - cta/CTA#280 - Add a timeout to tape server global lock on the object store
+- cta/CTA#292 - Problem with cppcheck
 ### Continuous Integration
 - cta/CTA#205 - Updating EOS4/EOS4 in versionlock for v4.8.95/v5.1.5
 - cta/CTA#253 - Allow Failure for cta_valgrind tests
diff --git a/objectstore/RetrieveQueueAlgorithms.hpp b/objectstore/RetrieveQueueAlgorithms.hpp
index f79f237a43..4247ca104a 100644
--- a/objectstore/RetrieveQueueAlgorithms.hpp
+++ b/objectstore/RetrieveQueueAlgorithms.hpp
@@ -483,7 +483,7 @@ struct ContainerTraits<RetrieveQueue,RetrieveQueueToTransfer>::PoppedElementsSum
   uint64_t bytes;
   bool diskSystemFull = false;
   std::string fullDiskSystem;
-  PoppedElementsSummary(uint64_t f = 0, uint64_t b = 0) : files(f), bytes(b) {}
+  PoppedElementsSummary(uint64_t f = 0, uint64_t b = 0) : files(f), bytes(b) {}  // cppcheck-suppress uninitMemberVar
   bool operator==(const PoppedElementsSummary &pes) const {
     return bytes == pes.bytes && files == pes.files;
   }
-- 
GitLab