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. --- utils/kmsprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/kmsprint.cpp') diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp index 71bcb70..e51de93 100644 --- a/utils/kmsprint.cpp +++ b/utils/kmsprint.cpp @@ -330,9 +330,9 @@ static void print_entry(const Entry& e, const string& prefix, bool is_child, boo } for (const Entry& child : e.children) { - bool is_last = &child == &e.children.back(); + bool child_is_last = &child == &e.children.back(); - print_entry(child, prefix2, true, is_last); + print_entry(child, prefix2, true, child_is_last); } } -- cgit v1.2.3