From 5c0605f6dc3067a6af09a400d877d29599b28186 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 16 Aug 2016 10:03:52 +0200 Subject: [PATCH] Mute a few warnings --- pcbnew/class_board.h | 1 + pcbnew/router/router_tool.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pcbnew/class_board.h b/pcbnew/class_board.h index 2d256bb5a1..09caae0458 100644 --- a/pcbnew/class_board.h +++ b/pcbnew/class_board.h @@ -224,6 +224,7 @@ private: BOARD& operator=( const BOARD& aOther ) { assert( false ); + return *this; // just to mute warning } public: diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 2e62349371..371d16bcbe 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -829,8 +829,6 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) ctls->SetAutoPan( true ); frame->UndoRedoBlock( true ); - bool modified = false; - while( OPT_TOOL_EVENT evt = Wait() ) { p0 = ctls->GetCursorPosition(); @@ -845,7 +843,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) } else if( evt->IsMouseUp( BUT_LEFT ) || evt->IsClick( BUT_LEFT ) ) { - modified = m_router->FixRoute( p0, NULL ); + m_router->FixRoute( p0, NULL ); break; } }