From 1ac579fe2e17153efc268d508f760d7444089462 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Castelli?= Date: Wed, 7 May 2014 16:17:50 +0200 Subject: [PATCH] Fix warning introduced by previous commit --- src/surf/surf_routing_cluster_fat_tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_routing_cluster_fat_tree.cpp b/src/surf/surf_routing_cluster_fat_tree.cpp index 99232af44f..1c541d5299 100644 --- a/src/surf/surf_routing_cluster_fat_tree.cpp +++ b/src/surf/surf_routing_cluster_fat_tree.cpp @@ -30,6 +30,7 @@ bool AsClusterFatTree::isInSubTree(FatTreeNode *root, FatTreeNode *node) { } return true; } + void AsClusterFatTree::getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, @@ -39,7 +40,7 @@ void AsClusterFatTree::getRouteAndLatency(RoutingEdgePtr src, source = this->nodes.find(src->getId())->second; destination = this->nodes.find(dst->getId())->second; - int d, k; // as in d-mod-k + int d = 0, k = 0; // as in d-mod-k currentNode = source; -- 2.20.1