Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initialize a variable in EP.
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 26 Sep 2021 22:57:51 +0000 (00:57 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 26 Sep 2021 22:57:51 +0000 (00:57 +0200)
exit being replaced by smpi_exit, clang thinks wrongly that it can now be used uninitialized, due to our really strict warning policy. This would not cause any issue on a regular build.

examples/smpi/NAS/ep.c

index da910c8..fa83b5c 100644 (file)
@@ -20,7 +20,7 @@ int main(int argc, char **argv) {
   double t1, t2, t3, t4;
   double sx_verify_value, sy_verify_value, sx_err, sy_err;
 
   double t1, t2, t3, t4;
   double sx_verify_value, sy_verify_value, sx_err, sy_err;
 
-  int    m;
+  int    m = 24;
   int    mk=16;
   int    nk = (int)(pow(2,mk)),
          nq=10,
   int    mk=16;
   int    nk = (int)(pow(2,mk)),
          nq=10,