From: Arnaud Giersch Date: Tue, 8 Apr 2014 12:31:10 +0000 (+0200) Subject: No need to have this variable global. X-Git-Tag: v3_11~129 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/76d868f42e7824432bff8778aaf4d63e6d01a941 No need to have this variable global. --- diff --git a/src/simix/smx_global.c b/src/simix/smx_global.c index a169f8d9e6..fffa264b77 100644 --- a/src/simix/smx_global.c +++ b/src/simix/smx_global.c @@ -191,9 +191,9 @@ void SIMIX_global_init(int *argc, char **argv) * * This functions remove the memory used by SIMIX */ -int cleaned = 0; void SIMIX_clean(void) { + static int cleaned = 0; #ifdef TIME_BENCH_PER_SR smx_ctx_raw_new_sr(); #endif