X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/25687c41a4e7abbd8c68f56f7172d5830e8fea41..0c43de62fbe4bfc243d6512296e09207e80bcd54:/src/surf/network.cpp diff --git a/src/surf/network.cpp b/src/surf/network.cpp index 8fa588e5dc..eb77f12111 100644 --- a/src/surf/network.cpp +++ b/src/surf/network.cpp @@ -250,7 +250,7 @@ void surf_network_model_init_Vegas(void) void NetworkCm02Model::initialize() { - ActionLmmPtr comm; + ActionLmmPtr comm = NULL; char *optim = xbt_cfg_get_string(_sg_cfg_set, "network/optim"); int select = @@ -312,7 +312,7 @@ NetworkCm02LinkLmmPtr NetworkCm02Model::createResource(const char *name, return nw_link; } -void NetworkCm02Model::updateActionsStateLazy(double now, double delta) +void NetworkCm02Model::updateActionsStateLazy(double now, double /*delta*/) { NetworkCm02ActionLmmPtr action; while ((xbt_heap_size(p_actionHeap) > 0) @@ -322,7 +322,7 @@ void NetworkCm02Model::updateActionsStateLazy(double now, double delta) #ifdef HAVE_TRACING if (TRACE_is_enabled()) { int n = lmm_get_number_of_cnst_from_var(p_maxminSystem, action->p_variable); - unsigned int i; + int i; for (i = 0; i < n; i++){ lmm_constraint_t constraint = lmm_get_cnst_from_var(p_maxminSystem, action->p_variable, @@ -498,15 +498,15 @@ ActionPtr NetworkCm02Model::communicate(RoutingEdgePtr src, RoutingEdgePtr dst, return action; } -double NetworkCm02Model::latencyFactor(double size) { +double NetworkCm02Model::latencyFactor(double /*size*/) { return sg_latency_factor; } -double NetworkCm02Model::bandwidthFactor(double size) { +double NetworkCm02Model::bandwidthFactor(double /*size*/) { return sg_bandwidth_factor; } -double NetworkCm02Model::bandwidthConstraint(double rate, double bound, double size) { +double NetworkCm02Model::bandwidthConstraint(double rate, double /*bound*/, double /*size*/) { return rate; }