mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-05 00:15:30 +00:00
Fix a Coverity and a compil minor warning
This commit is contained in:
parent
34f12dc4be
commit
7bd4fa3fa6
@ -1632,7 +1632,7 @@ void SIMULATOR_FRAME_UI::AddTuner( const SCH_SHEET_PATH& aSheetPath, SCH_SYMBOL*
|
||||
return;
|
||||
}
|
||||
|
||||
if( const SPICE_ITEM* item = GetExporter()->FindItem( ref ) )
|
||||
if( [[maybe_unused]] const SPICE_ITEM* item = GetExporter()->FindItem( ref ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -253,7 +253,7 @@ wxString GERBER_DRAW_ITEM::ShowGBRShape() const
|
||||
|
||||
D_CODE* GERBER_DRAW_ITEM::GetDcodeDescr() const
|
||||
{
|
||||
if( ( m_DCode < FIRST_DCODE ) || ( m_DCode > LAST_DCODE ) )
|
||||
if( !D_CODE::IsValidDcodeValue( m_DCode ) )
|
||||
return nullptr;
|
||||
|
||||
if( m_GerberImageFile == nullptr )
|
||||
|
Loading…
Reference in New Issue
Block a user