Fix some new compiler warnings on GCC 10
This commit is contained in:
parent
87bb437fd3
commit
4100650ce1
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
FullFileName = EDA_FILE_SELECTOR( _( "Read descr shape file" ),
|
||||||
lastpath, FullFileName,
|
lastpath, FullFileName,
|
||||||
wxEmptyString, mask,
|
wxEmptyString, mask,
|
||||||
this, wxFD_OPEN, true );
|
this, wxFD_OPEN, true );
|
||||||
|
|
||||||
if( FullFileName.IsEmpty() )
|
if( FullFileName.IsEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue