Silence MSVC warnings about type mismatch and unused var
(cherry picked from commit 34e90e5045
)
This commit is contained in:
parent
cf8c614a02
commit
6fd93eaa1e
|
@ -75,7 +75,7 @@ EDA_RECT EE_SELECTION::GetBoundingBox() const
|
|||
{
|
||||
bbox.Merge( static_cast<SCH_SYMBOL*>( item )->GetBoundingBox() );
|
||||
}
|
||||
catch( const boost::bad_pointer& exc )
|
||||
catch( const boost::bad_pointer& )
|
||||
{
|
||||
wxFAIL_MSG( "Invalid pointer." );
|
||||
}
|
||||
|
|
|
@ -305,7 +305,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
moveItem( item, delta );
|
||||
updateItem( item, false );
|
||||
|
||||
isPasted |= item->GetFlags() & IS_PASTED;
|
||||
isPasted |= ( item->GetFlags() & IS_PASTED ) != 0;
|
||||
item->ClearFlags( IS_PASTED );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue