From 1f3b3d681cc4e2fe4e341c64167d7c3baad3eac0 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 18 Apr 2013 12:03:47 -0500 Subject: [PATCH] fix some compiler warnings --- gerbview/rs274x.cpp | 3 +++ pcbnew/class_drawsegment.cpp | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gerbview/rs274x.cpp b/gerbview/rs274x.cpp index 893698a0ed..d65cc3bafa 100644 --- a/gerbview/rs274x.cpp +++ b/gerbview/rs274x.cpp @@ -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 diff --git a/pcbnew/class_drawsegment.cpp b/pcbnew/class_drawsegment.cpp index 1ecd428739..82b37f41f7 100644 --- a/pcbnew/class_drawsegment.cpp +++ b/pcbnew/class_drawsegment.cpp @@ -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" );