diff options
Diffstat (limited to 'libgfortran/generated/unpack_r10.c')
-rw-r--r-- | libgfortran/generated/unpack_r10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgfortran/generated/unpack_r10.c b/libgfortran/generated/unpack_r10.c index 7981754..4044ec3f 100644 --- a/libgfortran/generated/unpack_r10.c +++ b/libgfortran/generated/unpack_r10.c @@ -79,6 +79,8 @@ unpack0_r10 (gfc_array_r10 *ret, const gfc_array_r10 *vector, else runtime_error ("Funny sized logical array"); + /* Initialize to avoid -Wmaybe-uninitialized complaints. */ + rstride[0] = 1; if (ret->base_addr == NULL) { /* The front end has signalled that we need to populate the @@ -102,8 +104,6 @@ unpack0_r10 (gfc_array_r10 *ret, const gfc_array_r10 *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; @@ -225,6 +225,8 @@ unpack1_r10 (gfc_array_r10 *ret, const gfc_array_r10 *vector, else runtime_error ("Funny sized logical array"); + /* Initialize to avoid -Wmaybe-uninitialized complaints. */ + rstride[0] = 1; if (ret->base_addr == NULL) { /* The front end has signalled that we need to populate the @@ -249,8 +251,6 @@ unpack1_r10 (gfc_array_r10 *ret, const gfc_array_r10 *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; |