Linkgraph: Fix unused expression result warning

This commit is contained in:
Jonathan G Rennison
2021-03-02 23:05:50 +00:00
parent 9ca1c04330
commit 32dcc0d484

View File

@@ -288,7 +288,7 @@ void MultiCommodityFlow::Dijkstra(NodeID source_node, PathVector &paths)
Tannotation *anno = new (this->job.path_allocator.Allocate()) Tannotation(node, node == source_node); Tannotation *anno = new (this->job.path_allocator.Allocate()) Tannotation(node, node == source_node);
anno->UpdateAnnotation(); anno->UpdateAnnotation();
if (node == source_node) { if (node == source_node) {
annos.insert(AnnoSetItem<Tannotation>(anno)).first; annos.insert(AnnoSetItem<Tannotation>(anno));
anno->SetAnnosSetFlag(true); anno->SetAnnosSetFlag(true);
} }
paths[node] = anno; paths[node] = anno;