This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, libfortran] Fix warnings in error.c


Hi all,

I will commit the following as obvious to eliminate warnings when compiling runtime/error.c.

Regards,

Jerry

Index: runtime/error.c
===================================================================
--- runtime/error.c     (revision 139812)
+++ runtime/error.c     (working copy)
@@ -199,13 +199,13 @@ show_locus (st_parameter_common *cmp)
       if (filename != NULL)
        {
          st_printf ("At line %d of file %s (unit = %d, file = '%s')\n",
-                  (int) cmp->line, cmp->filename, cmp->unit, filename);
+                  (int) cmp->line, cmp->filename, (int) cmp->unit, filename);
          free_mem (filename);
        }
       else
        {
          st_printf ("At line %d of file %s (unit = %d)\n",
-                  (int) cmp->line, cmp->filename, cmp->unit);
+                  (int) cmp->line, cmp->filename, (int) cmp->unit);
        }
       return;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]