This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[patch, libfortran] Fix warnings in error.c
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 Sep 2008 18:13:07 -0700
- Subject: [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;
}