tests: Fix build warning of -Wshadow 73/290573/1 accepted/tizen/unified/20230330.104243
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 29 Mar 2023 01:39:24 +0000 (10:39 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 29 Mar 2023 04:19:07 +0000 (13:19 +0900)
Change-Id: I1867d94617568a75e1378f4ebf70f86dcbe9c784

tests/tc_video.cpp

index 2d493a0..d00883c 100644 (file)
@@ -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;
             }