Fix a compil issue (missing header) and a minor compil warning

This commit is contained in:
jean-pierre charras 2023-09-14 08:44:09 +02:00
parent 5b9aab9070
commit 931401b5be
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include <trace_helpers.h>
#include <string_utils.h>
#include <macros.h>
#include <cstdint>
using namespace fontconfig;

View File

@ -66,10 +66,13 @@ void ConnectBoardShapes( std::vector<PCB_SHAPE*>& aShapeList,
if( aShapeList.size() == 0 )
return;
#if 0
// Not used, but not removed, just in case
auto close_enough = []( const VECTOR2I& aLeft, const VECTOR2I& aRight, unsigned aLimit ) -> bool
{
return ( aLeft - aRight ).SquaredEuclideanNorm() <= SEG::Square( aLimit );
};
#endif
auto closer_to_first = []( const VECTOR2I& aRef, const VECTOR2I& aFirst,
const VECTOR2I& aSecond ) -> bool