From 06e00c795736b719cc5b141ef71ce1e407d069b1 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 8 Feb 2022 09:26:12 -0500 Subject: [PATCH] Fix shadow variable compile warning in text DRC provider. --- pcbnew/drc/drc_test_provider_text_dims.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_test_provider_text_dims.cpp b/pcbnew/drc/drc_test_provider_text_dims.cpp index b32aff2414..4bc4d77b55 100644 --- a/pcbnew/drc/drc_test_provider_text_dims.cpp +++ b/pcbnew/drc/drc_test_provider_text_dims.cpp @@ -173,7 +173,7 @@ bool DRC_TEST_PROVIDER_TEXT_DIMS::Run() if( outlineCount == 0 ) continue; // ignore spaces - for( int ii = 0; ii < outlineCount; ++ii ) + for( ii = 0; ii < outlineCount; ++ii ) holeCount += outlineGlyph->HoleCount( ii ); SHAPE_POLY_SET poly = *outlineGlyph; @@ -183,7 +183,7 @@ bool DRC_TEST_PROVIDER_TEXT_DIMS::Run() int resultingOutlineCount = poly.OutlineCount(); int resultingHoleCount = 0; - for( int ii = 0; ii < resultingOutlineCount; ++ii ) + for( ii = 0; ii < resultingOutlineCount; ++ii ) resultingHoleCount += poly.HoleCount( ii ); if( ( resultingOutlineCount != outlineCount )