From 68b5fa474bc7acde6fe72fea253a8d29a8716d1c Mon Sep 17 00:00:00 2001 From: Alexander Shirokov Date: Wed, 26 Jul 2023 21:57:40 +0200 Subject: [PATCH] Fix warning about unused variable It's a cosmetic change. The variable is only modified, but its value never used. --- src/hw/dmi/DmiReader.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hw/dmi/DmiReader.cpp b/src/hw/dmi/DmiReader.cpp index 1e12603c..576964ec 100644 --- a/src/hw/dmi/DmiReader.cpp +++ b/src/hw/dmi/DmiReader.cpp @@ -88,7 +88,6 @@ bool xmrig::DmiReader::decode(uint8_t *buf) } uint8_t *data = buf; - int i = 0; while (data + 4 <= buf + m_size) { dmi_header h{}; @@ -97,7 +96,6 @@ bool xmrig::DmiReader::decode(uint8_t *buf) if (h.length < 4 || h.type == 127) { break; } - i++; uint8_t *next = data + h.length; while (static_cast(next - buf + 1) < m_size && (next[0] != 0 || next[1] != 0)) {