diff options
Diffstat (limited to 'libgfortran/generated/unpack_i16.c')
-rw-r--r-- | libgfortran/generated/unpack_i16.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/generated/unpack_i16.c b/libgfortran/generated/unpack_i16.c index 7e0d1f766d5..ba19a700b2f 100644 --- a/libgfortran/generated/unpack_i16.c +++ b/libgfortran/generated/unpack_i16.c @@ -104,6 +104,8 @@ unpack0_i16 (gfc_array_i16 *ret, const gfc_array_i16 *vector, else { dim = GFC_DESCRIPTOR_RANK (ret); + /* Initialize to avoid -Wmaybe-uninitialized complaints. */ + rstride[0] = 1; for (n = 0; n < dim; n++) { count[n] = 0; @@ -249,6 +251,8 @@ unpack1_i16 (gfc_array_i16 *ret, const gfc_array_i16 *vector, else { dim = GFC_DESCRIPTOR_RANK (ret); + /* Initialize to avoid -Wmaybe-uninitialized complaints. */ + rstride[0] = 1; for (n = 0; n < dim; n++) { count[n] = 0; |