7
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:
jean-pierre charras 2025-03-26 13:12:45 +01:00
parent 34f12dc4be
commit 7bd4fa3fa6
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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 )