Suppress non-Mac warning

The return variable is unused, so passing the pointer to a null lambda
drops the warning without incurring compile penalty.
This commit is contained in:
Seth Hillbrand 2019-06-11 07:55:19 -07:00
parent 32052d953f
commit 60b98a8b4f
1 changed files with 3 additions and 0 deletions

View File

@ -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 ) )