fix some compiler warnings

This commit is contained in:
Dick Hollenbeck 2013-04-18 12:03:47 -05:00
parent fb57b54be8
commit 1f3b3d681c
2 changed files with 4 additions and 2 deletions

View File

@ -758,6 +758,8 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command,
break;
}
(void) seq_len; // quiet g++, or delete the unused variable.
ok = GetEndOfBlock( buff, text, m_Current_File );
return ok;
@ -788,6 +790,7 @@ bool GetEndOfBlock( char buff[GERBER_BUFZ], char*& text, FILE* gerber_file )
return false;
}
/**
* Function GetNextLine
* test for an end of line

View File

@ -320,8 +320,7 @@ void DRAWSEGMENT::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
wxString msg;
wxString coords;
BOARD* board = (BOARD*) m_Parent;
wxASSERT( board );
wxASSERT( m_Parent );
msg = wxT( "DRAWING" );