]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/network_gtnets.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix compilation error if gtnets is to be compiled without tracing
[simgrid.git] / src / surf / network_gtnets.c
index 4ef677c339df5b9e4865e397d8392ee3e73454ba..ad0cef7338241e7ee71163af8fb324d7082d9b4e 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);
 
+#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) {