]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: fix bootstrap with -Werror=maybe-uninitialized
authorHarald Anlauf <anlauf@gmx.de>
Tue, 9 Sep 2025 19:16:18 +0000 (21:16 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 9 Sep 2025 19:30:07 +0000 (21:30 +0200)
gcc/fortran/ChangeLog:

* trans-intrinsic.cc (conv_intrinsic_fstat_lstat_stat_sub): Init
some variables.

gcc/fortran/trans-intrinsic.cc

index b6691f58bee819309744b5a6cce19bc2827c2f9f..d1c2a80b2775909b4168063c0daa1b1543e79212 100644 (file)
@@ -5878,8 +5878,9 @@ conv_intrinsic_fstat_lstat_stat_sub (gfc_code *code)
 {
   stmtblock_t block;
   gfc_se se, se_stat;
-  tree unit;
-  tree name, slen;
+  tree unit = NULL_TREE;
+  tree name = NULL_TREE;
+  tree slen = NULL_TREE;
   tree vals;
   tree arg3 = NULL_TREE;
   tree stat = NULL_TREE ;