mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:06:13 +08:00
Fix: Anotate unused variable to remove warnings
This commit is contained in:
parent
26ec836c12
commit
49de8d2869
@ -291,7 +291,8 @@ VoronoiGraph::Node *VoronoiGraphUtils::getNode(VoronoiGraph & graph,
|
|||||||
Point point = to_point(vertex);
|
Point point = to_point(vertex);
|
||||||
double distance = line.distance_to(point);
|
double distance = line.distance_to(point);
|
||||||
|
|
||||||
auto [iterator, success] = data.emplace(vertex, VoronoiGraph::Node(vertex, distance));
|
[[maybe_unused]] auto [iterator, success] =
|
||||||
|
data.emplace(vertex, VoronoiGraph::Node(vertex, distance));
|
||||||
assert(success);
|
assert(success);
|
||||||
return &iterator->second;
|
return &iterator->second;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user