]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: Silence -Wmaybe-uninitialized warning
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Sun, 31 Oct 2021 16:17:56 +0000 (17:17 +0100)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Sun, 31 Oct 2021 17:26:38 +0000 (18:26 +0100)
gcc/fortran/ChangeLog:

* resolve.c (resolve_fl_procedure): Initialize
allocatable_or_pointer.

gcc/fortran/resolve.c

index 8da396b32ecbb571e803ff949ce40e14fa935f8d..21126cba262620e0d3f4a41d860b625c6a02450a 100644 (file)
@@ -13179,7 +13179,7 @@ static bool
 resolve_fl_procedure (gfc_symbol *sym, int mp_flag)
 {
   gfc_formal_arglist *arg;
-  bool allocatable_or_pointer;
+  bool allocatable_or_pointer = false;
 
   if (sym->attr.function
       && !resolve_fl_var_and_proc (sym, mp_flag))