Fix a few Coverity and compil warnings.

This commit is contained in:
jean-pierre charras 2022-03-26 16:10:41 +01:00
parent 0652c7b429
commit 9a342458fa
3 changed files with 4 additions and 4 deletions

View File

@ -260,7 +260,7 @@ NETLIST_DIALOG::NETLIST_DIALOG( SCH_EDIT_FRAME* parent ) :
SetupStandardButtons( { { wxID_OK, _( "Export Netlist" ) },
{ wxID_CANCEL, _( "Close" ) } } );
for( int ii = 0; m_PanelNetType[ii] && ii < 4 + CUSTOMPANEL_COUNTMAX; ++ii )
for( int ii = 0; (ii < 4 + CUSTOMPANEL_COUNTMAX) && m_PanelNetType[ii]; ++ii )
{
if( m_PanelNetType[ii]->GetPageNetFmtName() == settings.m_NetFormatName )
{

View File

@ -127,9 +127,9 @@ void DIALOG_FOOTPRINT_CHECKER::runChecks()
footprint->BuildPolyCourtyards( &outlineErrorHandler );
footprint->CheckFootprintAttributes(
[&]( const wxString& msg )
[&]( const wxString& aMsg )
{
errorHandler( footprint, nullptr, DRCE_FOOTPRINT_TYPE_MISMATCH, msg, { 0, 0 } );
errorHandler( footprint, nullptr, DRCE_FOOTPRINT_TYPE_MISMATCH, aMsg, { 0, 0 } );
} );
footprint->CheckPads(

View File

@ -293,7 +293,7 @@ static path_t* findpath( potrace_bitmap_t* bm, int x0, int y0, int sign, int tur
/* move to next point */
x += dirx;
y += diry;
area += x * diry;
area += uint64_t( x ) * uint64_t( diry );
/* path complete? */
if( x == x0 && y == y0 )