diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index b4c9fda9b3..10251a9c77 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -1864,7 +1864,7 @@ void PCB_TUNING_PATTERN::SetProperties( const STRING_ANY_MAP& aProps ) aProps.get_to( "single_sided", m_settings.m_singleSided ); aProps.get_to( "side", m_settings.m_initialSide ); - bool rounded; + bool rounded = false; aProps.get_to( "rounded", rounded ); m_settings.m_cornerStyle = rounded ? PNS::MEANDER_STYLE_ROUND : PNS::MEANDER_STYLE_CHAMFER; diff --git a/qa/tests/common/test_richio.cpp b/qa/tests/common/test_richio.cpp index b8b1cd9e22..7d15fb8a8e 100644 --- a/qa/tests/common/test_richio.cpp +++ b/qa/tests/common/test_richio.cpp @@ -58,7 +58,13 @@ BOOST_AUTO_TEST_CASE( VPrint ) output.clear(); // Test 3: Edge case with zero characters + #ifdef __GNUC__ + #pragma GCC diagnostic ignored "-Wformat-zero-length" + #endif StrPrintf( &output, "" ); + #ifdef __GNUC__ + #pragma GCC diagnostic warning "-Wformat-zero-length" + #endif BOOST_ASSERT( output.empty() ); // Test 4: Mixing small and large strings