From c8edec642339edb3dcc639d4758a2390c4dd25cc Mon Sep 17 00:00:00 2001 From: Lucas Schnorr Date: Mon, 23 May 2011 17:09:29 +0200 Subject: [PATCH] fix compilation error if gtnets is to be compiled without tracing --- src/surf/network_gtnets.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.20.1