mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix some warnings.
This commit is contained in:
parent
8a0e0b620c
commit
50ce7d93fb
@ -340,7 +340,9 @@ const wxCursorBundle& CURSOR_STORE::storeGetBundle( KICURSOR aIdKey ) const
|
||||
wxASSERT_MSG( false, wxString::Format( "Could not find cursor bundle with ID %d",
|
||||
static_cast<int>( aIdKey ) ) );
|
||||
|
||||
return wxCursorBundle();
|
||||
static const wxCursorBundle invalid;
|
||||
|
||||
return invalid;
|
||||
}
|
||||
#else
|
||||
const wxCursor& CURSOR_STORE::storeGetCursor( KICURSOR aIdKey, bool aHiDPI ) const
|
||||
|
@ -151,6 +151,7 @@ wxString PATHS::GetDefaultUserProjectsPath()
|
||||
}
|
||||
|
||||
|
||||
#if !defined( __WXMAC__ ) && !defined( __WXMSW__ )
|
||||
/**
|
||||
* Get the CMake build root directory for the current executable
|
||||
* (which assumes the executable is in a build directory).
|
||||
@ -191,6 +192,7 @@ static wxString getBuildDirectoryRoot()
|
||||
|
||||
return fn.GetPath();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
|
||||
|
@ -713,7 +713,7 @@ void KIBIS_PIN::getKuKdFromFile( const std::string& aSimul )
|
||||
i = ( i + 1 ) % 3;
|
||||
}
|
||||
}
|
||||
catch( const std::exception& e )
|
||||
catch( const std::exception& )
|
||||
{
|
||||
Report( _( "Error while reading temporary file" ), RPT_SEVERITY_ERROR );
|
||||
}
|
||||
|
@ -669,8 +669,9 @@ bool MEANDER_SHAPE::Fit( MEANDER_TYPE aType, const SEG& aSeg, const VECTOR2I& aP
|
||||
{
|
||||
const MEANDER_SETTINGS& st = Settings();
|
||||
|
||||
bool checkMode = false;
|
||||
MEANDER_TYPE prim1, prim2;
|
||||
bool checkMode = false;
|
||||
MEANDER_TYPE prim1 = MT_EMPTY;
|
||||
MEANDER_TYPE prim2 = MT_EMPTY;
|
||||
|
||||
if( aType == MT_CHECK_START )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user