From d785a753f9406bf74150e038ccf58b8b40eea932 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 13 Sep 2025 17:43:53 +0300 Subject: fix: Resolve variable shadowing warnings Fix cppcheck shadowVariable and shadowArgument warnings by renaming local variables to avoid conflicts: - Rename 'ob' to 'prop' in property creation loop in card.cpp - Rename loop variable 'y_offset' to 'y_off' in conv-yuv-semiplanar.h - Rename local 'y' to 'y_val' in SMPTE pattern generator in testpat.cpp - Rename 'is_last' to 'child_is_last' in entry printing in kmsprint.cpp These changes eliminate naming conflicts while preserving functionality and improving code clarity. --- kms++/src/card.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kms++/src/card.cpp') diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index c26e4f2..f67f8f8 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -269,9 +269,9 @@ void Card::setup() uint32_t prop_id = props->props[i]; if (m_obmap.find(prop_id) == m_obmap.end()) { - auto ob = new Property(*this, prop_id); - m_obmap[prop_id] = ob; - m_properties.push_back(ob); + auto prop = new Property(*this, prop_id); + m_obmap[prop_id] = prop; + m_properties.push_back(prop); } } -- cgit v1.2.3