This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36890] libgfortran/io/file_pos.c:55: warning: comparison between signed and unsigned
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2008 08:30:26 -0000
- Subject: [Bug fortran/36890] libgfortran/io/file_pos.c:55: warning: comparison between signed and unsigned
- References: <bug-36890-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2008-07-22 08:30 -------
This is caused by
static const unsigned int READ_CHUNK = 4096;
and, further down,
n = (base < READ_CHUNK) ? base : READ_CHUNK;
where base is a gfc_offset (a signed quantity).
The "unsigned" is unnecessary. I'll commit a patch removing
this as obvious.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tkoenig at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-07-22 08:30:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36890