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:
parent
32052d953f
commit
60b98a8b4f
|
@ -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…
Reference in New Issue