From 928d15226735d73d3413456de1befeffe5eadc42 Mon Sep 17 00:00:00 2001 From: degomme Date: Fri, 17 Jun 2016 17:00:24 +0200 Subject: [PATCH] warnings -- --- src/surf/AsClusterDragonfly.cpp | 6 +++--- src/surf/AsClusterDragonfly.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/surf/AsClusterDragonfly.cpp b/src/surf/AsClusterDragonfly.cpp index bb3a90c999..a99a29674c 100644 --- a/src/surf/AsClusterDragonfly.cpp +++ b/src/surf/AsClusterDragonfly.cpp @@ -28,7 +28,7 @@ AsClusterDragonfly::AsClusterDragonfly(const char*name) AsClusterDragonfly::~AsClusterDragonfly() { if(this->routers_!=NULL){ - int i; + unsigned int i; for (i=0; inumGroups_*this->numChassisPerGroup_*this->numBladesPerChassis_;i++) delete(routers_[i]); xbt_free(routers_); @@ -175,12 +175,12 @@ void AsClusterDragonfly::createLink(char* id, int numlinks, Link** linkup, Link* void AsClusterDragonfly::generateLinks() { - unsigned int i, j, k, l,m; + unsigned int i, j, k, l; static int uniqueId = 0; char* id = NULL; Link* linkup, *linkdown; - int numRouters = this->numGroups_*this->numChassisPerGroup_*this->numBladesPerChassis_; + unsigned int numRouters = this->numGroups_*this->numChassisPerGroup_*this->numBladesPerChassis_; if (this->cluster_->sharing_policy == SURF_LINK_FULLDUPLEX) numLinksperLink_=2; diff --git a/src/surf/AsClusterDragonfly.hpp b/src/surf/AsClusterDragonfly.hpp index fd22a4e4de..7bca70dac3 100644 --- a/src/surf/AsClusterDragonfly.hpp +++ b/src/surf/AsClusterDragonfly.hpp @@ -14,9 +14,9 @@ namespace simgrid { class XBT_PRIVATE DragonflyRouter { public: - int group_; - int chassis_; - int blade_; + unsigned int group_; + unsigned int chassis_; + unsigned int blade_; Link** blueLinks_=NULL; Link** blackLinks_=NULL; Link** greenLinks_=NULL; -- 2.20.1