summaryrefslogtreecommitdiff
path: root/libgfortran/generated/spread_c10.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/spread_c10.c')
-rw-r--r--libgfortran/generated/spread_c10.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/generated/spread_c10.c b/libgfortran/generated/spread_c10.c
index 485f4ad1431..987a81c0d7b 100644
--- a/libgfortran/generated/spread_c10.c
+++ b/libgfortran/generated/spread_c10.c
@@ -56,6 +56,8 @@ spread_c10 (gfc_array_c10 *ret, const gfc_array_c10 *source,
srank = GFC_DESCRIPTOR_RANK(source);
+ sstride[0] = 0; /* Avoid warnings if not initialized. */
+
rrank = srank + 1;
if (rrank > GFC_MAX_DIMENSIONS)
runtime_error ("return rank too large in spread()");