Commit 2dc59b4
committed
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[],
| ^~~~~~~~~~~~~~~~~~~~~~~~1 parent 2e85789 commit 2dc59b4
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 143 | + | |
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
| |||
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
159 | | - | |
| 156 | + | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
| |||
0 commit comments