diff --git a/eeschema/tools/ee_selection.cpp b/eeschema/tools/ee_selection.cpp index 697fd431f2..d1bc06a23a 100644 --- a/eeschema/tools/ee_selection.cpp +++ b/eeschema/tools/ee_selection.cpp @@ -75,7 +75,7 @@ EDA_RECT EE_SELECTION::GetBoundingBox() const { bbox.Merge( static_cast( item )->GetBoundingBox() ); } - catch( const boost::bad_pointer& exc ) + catch( const boost::bad_pointer& ) { wxFAIL_MSG( "Invalid pointer." ); } diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index bc994e1cee..cba0db2f58 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -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 ); }