Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix compilation error if gtnets is to be compiled without tracing
authorLucas Schnorr <Lucas.Schnorr@inf.ufrgs.br>
Mon, 23 May 2011 15:09:29 +0000 (17:09 +0200)
committerLucas Schnorr <Lucas.Schnorr@inf.ufrgs.br>
Tue, 24 May 2011 12:42:26 +0000 (14:42 +0200)
src/surf/network_gtnets.c

index 4ef677c..ad0cef7 100644 (file)
@@ -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);
 
       surf_action_new(sizeof(s_surf_action_network_GTNETS_t), size,
                       surf_network_model, 0);
 
+#ifdef HAVE_TRACING
   action->last_remains = 0;
   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) {
 
   /* Add a flow to the GTNets Simulation, associated to this action */
   if (gtnets_create_flow(src, dst, size, (void *) action) < 0) {