From: pini Date: Thu, 25 Mar 2010 14:41:25 +0000 (+0000) Subject: gcc likes it when you say 'please'. X-Git-Tag: SVN~365 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/64c0a3e0d8f5518e5f61a8043844c770280787f0 gcc likes it when you say 'please'. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7375 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/smpi/bcbench.c b/examples/smpi/bcbench.c index b3b6a7b5be..8272646a7b 100644 --- a/examples/smpi/bcbench.c +++ b/examples/smpi/bcbench.c @@ -16,8 +16,8 @@ int main(int argc, char *argv[]) int size, rank; int N; - struct timeval *start_time, *stop_time; - double seconds; + struct timeval *start_time = NULL, *stop_time = NULL; + double seconds = 0; int i, j; char *buffer; int check; diff --git a/examples/smpi/mvmul.c b/examples/smpi/mvmul.c index dbaceb826a..b76a15d124 100644 --- a/examples/smpi/mvmul.c +++ b/examples/smpi/mvmul.c @@ -14,9 +14,9 @@ int main(int argc, char *argv[]) int size, rank; int N, n, i, j, k, current_iteration, successful_iterations = 0; - double *matrix, *vector, *vcalc, *vcheck; + double *matrix = NULL, *vector = NULL, *vcalc, *vcheck; MPI_Status status; - struct timeval *start_time, *stop_time; + struct timeval *start_time = NULL, *stop_time = NULL; long parallel_usecs, parallel_usecs_total = 0, sequential_usecs, sequential_usecs_total = 0;