From 6fd93eaa1ee8369718f406ac88d02f7992d89168 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 1 Jan 2022 14:40:27 -0500 Subject: [PATCH] Silence MSVC warnings about type mismatch and unused var (cherry picked from commit 34e90e504563d4f4787334f6d6cbf833f81d173f) --- eeschema/tools/ee_selection.cpp | 2 +- eeschema/tools/sch_move_tool.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); }