Suppress Boost::Optional unitialized compile warning

Fixes: lp:1743009
* https://bugs.launchpad.net/kicad/+bug/1743009
This commit is contained in:
Seth Hillbrand 2018-01-12 08:58:25 -08:00 committed by jean-pierre charras
parent 98c8a5ac0c
commit 273f0d56cd
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ bool D_PAD::GetBestAnchorPosition( VECTOR2I& aPos )
minDistEdge = std::max( GetSize().x, GetSize().y );
}
OPT<VECTOR2I> bestAnchor;
OPT<VECTOR2I> bestAnchor( []()->OPT<VECTOR2I> { return NULLOPT; }() );
for ( int y = 0; y < stepsY ; y++ )
{