aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/match.c2
-rw-r--r--gcc/fortran/matchexp.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 80a1538..c8e31bf 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-22 Manfred Hollstein <mh@suse.com>
+
+ * match.c (gfc_match_symbol): Fix uninitialised warnings.
+ * matchexp.c (gfc_match_expr): Likewise.
+
2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
Make CONSTRUCTOR use VEC to store initializers.
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 7f249ee..22a0263 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -447,6 +447,8 @@ gfc_match_symbol (gfc_symbol ** matched_symbol, int host_assoc)
else
*matched_symbol = NULL;
}
+ else
+ *matched_symbol = NULL;
return m;
}
diff --git a/gcc/fortran/matchexp.c b/gcc/fortran/matchexp.c
index bb8168e..058f772 100644
--- a/gcc/fortran/matchexp.c
+++ b/gcc/fortran/matchexp.c
@@ -852,6 +852,7 @@ gfc_match_expr (gfc_expr ** result)
for (;;)
{
+ uop = NULL;
m = match_defined_operator (&uop);
if (m == MATCH_NO)
break;