From: Lucas Schnorr Date: Mon, 23 May 2011 15:09:29 +0000 (+0200) Subject: fix compilation error if gtnets is to be compiled without tracing X-Git-Tag: v3_6_rc3~14^2~11 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c8edec642339edb3dcc639d4758a2390c4dd25cc fix compilation error if gtnets is to be compiled without tracing --- diff --git a/src/surf/network_gtnets.c b/src/surf/network_gtnets.c index 4ef677c339..ad0cef7338 100644 --- a/src/surf/network_gtnets.c +++ b/src/surf/network_gtnets.c @@ -378,7 +378,9 @@ static surf_action_t communicate(const char *src_name, surf_action_new(sizeof(s_surf_action_network_GTNETS_t), size, surf_network_model, 0); +#ifdef HAVE_TRACING action->last_remains = 0; +#endif /* Add a flow to the GTNets Simulation, associated to this action */ if (gtnets_create_flow(src, dst, size, (void *) action) < 0) {