Browse Source

Suppress non-Mac warning

The return variable is unused, so passing the pointer to a null lambda
drops the warning without incurring compile penalty.
pull/15/head
Seth Hillbrand 7 years ago
parent
commit
60b98a8b4f
  1. 3
      pcbnew/tools/pcbnew_control.cpp

3
pcbnew/tools/pcbnew_control.cpp

@ -969,6 +969,9 @@ int PCBNEW_CONTROL::Show3DViewer( const TOOL_EVENT& aEvent )
{
EDA_3D_VIEWER* draw3DFrame = m_frame->CreateAndShow3D_Frame();
// Suppress warnings on non-Mac systems
[&draw3DFrame] {}();
if( m_frame->IsType( FRAME_PCB_MODULE_VIEWER )
|| m_frame->IsType( FRAME_PCB_MODULE_VIEWER_MODAL )
|| m_frame->IsType( FRAME_PCB_FOOTPRINT_WIZARD ) )

Loading…
Cancel
Save