Silence MSVC warnings about type mismatch and unused var

(cherry picked from commit 34e90e5045)
This commit is contained in:
Marek Roszko 2022-01-01 14:40:27 -05:00 committed by Mark Roszko
parent cf8c614a02
commit 6fd93eaa1e
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ EDA_RECT EE_SELECTION::GetBoundingBox() const
{ {
bbox.Merge( static_cast<SCH_SYMBOL*>( item )->GetBoundingBox() ); bbox.Merge( static_cast<SCH_SYMBOL*>( item )->GetBoundingBox() );
} }
catch( const boost::bad_pointer& exc ) catch( const boost::bad_pointer& )
{ {
wxFAIL_MSG( "Invalid pointer." ); wxFAIL_MSG( "Invalid pointer." );
} }

View File

@ -305,7 +305,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
moveItem( item, delta ); moveItem( item, delta );
updateItem( item, false ); updateItem( item, false );
isPasted |= item->GetFlags() & IS_PASTED; isPasted |= ( item->GetFlags() & IS_PASTED ) != 0;
item->ClearFlags( IS_PASTED ); item->ClearFlags( IS_PASTED );
} }