------- Comment #8 from jvdelisle at gcc dot gnu dot org  2009-09-06 21:21 
-------
The following patch gets rid of the two warnings in list_read.c.  The two
enumerators have equivalent value.  Regression tests fine.

@@ -2377,7 +2377,7 @@
          /* GFC_TYPE_UNKNOWN through for nulls and is detected
             after the switch block.  */

-         dtp->u.p.saved_type = GFC_DTYPE_UNKNOWN;
+         dtp->u.p.saved_type = BT_NULL;
          free_saved (dtp);

           switch (nl->type)
@@ -2467,7 +2467,7 @@
          return SUCCESS;
        }

-      if (dtp->u.p.saved_type == GFC_DTYPE_UNKNOWN)
+      if (dtp->u.p.saved_type == BT_NULL)
        {
          dtp->u.p.expanded_read = 0;
          goto incr_idx;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41219

Reply via email to