Initialize variable.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 21 Oct 2021 18:48:20 +0000 (14:48 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 25 Oct 2021 14:43:06 +0000 (10:43 -0400)
gcc/fortran/
* trans-decl.c (gfc_conv_cfi_to_gfc): Initialize rank to NULL_TREE.

gcc/fortran/trans-decl.c

index de624c8..fe5511b 100644 (file)
@@ -6668,7 +6668,7 @@ gfc_conv_cfi_to_gfc (stmtblock_t *init, stmtblock_t *finally,
   stmtblock_t block;
   gfc_init_block (&block);
   tree cfi = build_fold_indirect_ref_loc (input_location, cfi_desc);
-  tree rank, idx, etype, tmp, tmp2, size_var = NULL_TREE;
+  tree idx, etype, tmp, tmp2, size_var = NULL_TREE, rank = NULL_TREE;
   bool do_copy_inout = false;
 
   /* When allocatable + intent out, free the cfi descriptor.  */