summaryrefslogtreecommitdiffstats
path: root/libgfortran/m4/eoshift1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/m4/eoshift1.m4')
-rw-r--r--libgfortran/m4/eoshift1.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/m4/eoshift1.m4 b/libgfortran/m4/eoshift1.m4
index 9cf6fa9a84a..b21c6d34732 100644
--- a/libgfortran/m4/eoshift1.m4
+++ b/libgfortran/m4/eoshift1.m4
@@ -1,5 +1,5 @@
`/* Implementation of the EOSHIFT intrinsic
- Copyright 2002 Free Software Foundation, Inc.
+ Copyright 2002, 2005 Free Software Foundation, Inc.
Contributed by Paul Brook <paul@nowt.org>
This file is part of the GNU Fortran 95 runtime library (libgfortran).
@@ -77,6 +77,12 @@ eoshift1_`'atype_kind (const gfc_array_char *ret,
atype_name sh;
atype_name delta;
+ /* The compiler cannot figure out that these are set, initialize
+ them to avoid warnings. */
+ len = 0;
+ soffset = 0;
+ roffset = 0;
+
if (pwhich)
which = *pwhich - 1;
else
OpenPOWER on IntegriCloud