Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile warning from -Wstringop-overread
ncmpio_filetype.c: In function 'type_create_subarray64.constprop': ncmpio_filetype.c:154:21: warning: 'MPI_Type_create_subarray' reading 4 bytes from a region of size 0 [-Wstringop-overread] 154 | mpireturn = MPI_Type_create_subarray(ndims, sizes, subsizes, starts, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 155 | order, oldtype, newtype); | ~~~~~~~~~~~~~~~~~~~~~~~~ ncmpio_filetype.c:154:21: note: referencing argument 3 of type 'const int *' ncmpio_filetype.c:154:21: warning: 'MPI_Type_create_subarray' reading 4 bytes from a region of size 0 [-Wstringop-overread] ncmpio_filetype.c:154:21: note: referencing argument 4 of type 'const int *' In file included from ncmpio_filetype.c:18: /opt/cray/pe/mpich/8.1.25/ofi/gnu/9.1/include/mpi.h:1362:5: note: in a call to function 'MPI_Type_create_subarray' 1362 | int MPI_Type_create_subarray(int ndims, const int array_of_sizes[], | ^~~~~~~~~~~~~~~~~~~~~~~~
- Loading branch information