fixups for clang-20

This avoids -Werror=maybe-uninitialized

Tested: Unit Tests Pass

Change-Id: I9d9f953550675b4929cd069c82794a76c05f5bd6
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/bmc/item_updater.cpp b/bmc/item_updater.cpp
index 2e889fb..77c9a70 100644
--- a/bmc/item_updater.cpp
+++ b/bmc/item_updater.cpp
@@ -493,6 +493,7 @@
     auto it = versions.find(entryId);
     if (it != versions.end())
     {
+        // NOLINTNEXTLINE(misc-redundant-expression)
         if (it->second->isFunctional() && ACTIVE_BMC_MAX_ALLOWED > 1)
         {
             error(
diff --git a/bmc/item_updater_helper.hpp b/bmc/item_updater_helper.hpp
index 2b10e8f..b90f498 100644
--- a/bmc/item_updater_helper.hpp
+++ b/bmc/item_updater_helper.hpp
@@ -66,7 +66,7 @@
 
   private:
     /** @brief Persistent sdbusplus D-Bus bus connection. */
-    sdbusplus::bus_t& bus;
+    [[maybe_unused]] sdbusplus::bus_t& bus;
 };
 
 } // namespace updater