Browse Source

Mute a few warnings

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
5c0605f6dc
  1. 1
      pcbnew/class_board.h
  2. 4
      pcbnew/router/router_tool.cpp

1
pcbnew/class_board.h

@ -224,6 +224,7 @@ private:
BOARD& operator=( const BOARD& aOther ) BOARD& operator=( const BOARD& aOther )
{ {
assert( false ); assert( false );
return *this; // just to mute warning
} }
public: public:

4
pcbnew/router/router_tool.cpp

@ -829,8 +829,6 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
ctls->SetAutoPan( true ); ctls->SetAutoPan( true );
frame->UndoRedoBlock( true ); frame->UndoRedoBlock( true );
bool modified = false;
while( OPT_TOOL_EVENT evt = Wait() ) while( OPT_TOOL_EVENT evt = Wait() )
{ {
p0 = ctls->GetCursorPosition(); 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 ) ) else if( evt->IsMouseUp( BUT_LEFT ) || evt->IsClick( BUT_LEFT ) )
{ {
modified = m_router->FixRoute( p0, NULL );
m_router->FixRoute( p0, NULL );
break; break;
} }
} }

Loading…
Cancel
Save