summaryrefslogtreecommitdiff
path: root/libgfortran/generated/spread_r16.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/spread_r16.c')
-rw-r--r--libgfortran/generated/spread_r16.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/generated/spread_r16.c b/libgfortran/generated/spread_r16.c
index 6856f70122a..af6075e6b3d 100644
--- a/libgfortran/generated/spread_r16.c
+++ b/libgfortran/generated/spread_r16.c
@@ -56,6 +56,8 @@ spread_r16 (gfc_array_r16 *ret, const gfc_array_r16 *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()");