geom/sample: defend against maybe unused variable
This commit is contained in:
parent
e77f59e3ae
commit
b7a4b8d1c0
@ -160,7 +160,7 @@ namespace util::geom {
|
|||||||
// points is the greatest (while also being greater than the
|
// points is the greatest (while also being greater than the
|
||||||
// required minimum distance);
|
// required minimum distance);
|
||||||
auto best_distance2 = std::numeric_limits<value_type>::lowest ();
|
auto best_distance2 = std::numeric_limits<value_type>::lowest ();
|
||||||
size_t best_index;
|
size_t best_index = 0;
|
||||||
|
|
||||||
for (size_t i = 0; i < candidates.size (); ++i) {
|
for (size_t i = 0; i < candidates.size (); ++i) {
|
||||||
auto const p = candidates[i];
|
auto const p = candidates[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user