From b5afa007adf334eaf7f5e908e3defb3f59088024 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 29 Mar 2023 10:39:24 +0900 Subject: [PATCH] tests: Fix build warning of -Wshadow Change-Id: I1867d94617568a75e1378f4ebf70f86dcbe9c784 --- tests/tc_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tc_video.cpp b/tests/tc_video.cpp index 2d493a0..d00883c 100644 --- a/tests/tc_video.cpp +++ b/tests/tc_video.cpp @@ -128,10 +128,10 @@ TEST_F(VideoCompositor, AddFormats) ASSERT_EQ(supported_format.size(), ret_formats.size()); bool found; - for (uint32_t supported_format : supported_format) { + for (uint32_t format : supported_format) { found = false; for (uint32_t ret_format : ret_formats) { - if (supported_format == ret_format) { + if (format == ret_format) { found = true; break; } -- 2.7.4