From 7d014449b915e66c0dff0e6f24cd7a746c9569cc Mon Sep 17 00:00:00 2001 From: pini Date: Mon, 27 Sep 2010 16:01:05 +0000 Subject: [PATCH] Removed unused variables and added missing return call. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8219 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/smpi/smpi_bench.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 3608df626a..2667045083 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -83,6 +83,7 @@ void smpi_bench_end(int rank, const char* mpi_call) { unsigned int smpi_sleep(unsigned int secs) { smpi_execute((double)secs); + return secs; } int smpi_gettimeofday(struct timeval* tv, struct timezone* tz) { @@ -126,7 +127,6 @@ void smpi_sample_1(int global, const char* file, int line, int max) { int smpi_sample_2(int global, const char* file, int line) { char* loc = sample_location(global, file, line); local_data_t* data; - double* simu; xbt_assert0(samples, "You did something very inconsistent, didn't you?"); data = xbt_dict_get_or_null(samples, loc); @@ -153,7 +153,6 @@ int smpi_sample_2(int global, const char* file, int line) { void smpi_sample_3(int global, const char* file, int line) { char* loc = sample_location(global, file, line); local_data_t* data; - double spent; xbt_assert0(samples, "You did something very inconsistent, didn't you?"); data = xbt_dict_get_or_null(samples, loc); -- 2.20.1