Fix some new compiler warnings on GCC 10

This commit is contained in:
Ian McInerney 2020-12-15 00:24:42 +00:00
parent 87bb437fd3
commit 4100650ce1
2 changed files with 8 additions and 5 deletions

View File

@ -198,7 +198,7 @@ private:
std::vector<VECTOR2I> m_wireIntersections; std::vector<VECTOR2I> m_wireIntersections;
///> Wires and labels of a single connection (segment in Eagle nomenclature) ///> Wires and labels of a single connection (segment in Eagle nomenclature)
typedef struct { typedef struct SEG_DESC {
///> Tests if a particular label is attached to any of the stored segments ///> Tests if a particular label is attached to any of the stored segments
const SEG* LabelAttached( const SCH_TEXT* aLabel ) const; const SEG* LabelAttached( const SCH_TEXT* aLabel ) const;

View File

@ -499,10 +499,13 @@ void MWAVE_POLYGONAL_SHAPE_DLG::ReadDataShapeDescr( wxCommandEvent& event )
static wxString lastpath; // To remember the last open path during a session static wxString lastpath; // To remember the last open path during a session
wxString mask = wxFileSelectorDefaultWildcardStr; wxString mask = wxFileSelectorDefaultWildcardStr;
wxString FullFileName = EDA_FILE_SELECTOR( _( "Read descr shape file" ), wxString FullFileName;
lastpath, FullFileName,
wxEmptyString, mask, FullFileName = EDA_FILE_SELECTOR( _( "Read descr shape file" ),
this, wxFD_OPEN, true ); lastpath, FullFileName,
wxEmptyString, mask,
this, wxFD_OPEN, true );
if( FullFileName.IsEmpty() ) if( FullFileName.IsEmpty() )
return; return;