From: Arnaud Giersch Date: Thu, 26 Nov 2020 21:32:21 +0000 (+0100) Subject: Initialize variable. X-Git-Tag: v3.26~86 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d339999d6e0c1d912a113b9f9ebd04b94a8640a2 Initialize variable. Useless, but please PVS-studio. --- diff --git a/teshsuite/smpi/type-struct/type-struct.c b/teshsuite/smpi/type-struct/type-struct.c index 4256885ffa..2a4b38dba7 100644 --- a/teshsuite/smpi/type-struct/type-struct.c +++ b/teshsuite/smpi/type-struct/type-struct.c @@ -10,7 +10,12 @@ int main(int argc, char **argv) { int rank; - struct { int a;int c; double b;int tab[2][3];} value; + struct { + int a; + int c; + double b; + int tab[2][3]; + } value = {0}; MPI_Datatype mystruct; int blocklens[3]; MPI_Aint indices[3];