This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/22423] Warnings when building libgfortran
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2006 16:38:24 -0000
- Subject: [Bug libfortran/22423] Warnings when building libgfortran
- References: <bug-22423-10258@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from howarth at nitro dot med dot uc dot edu 2006-10-01 16:38 -------
FX,
I found a thread that discusses a simple fix...
http://curl.haxx.se/mail/lib-2004-10/0089.html
All we have to change is...
Index: io/list_read.c
===================================================================
--- io/list_read.c (revision 117347)
+++ io/list_read.c (working copy)
@@ -1457,7 +1457,7 @@ check_type (st_parameter_dt *dtp, bt typ
greater than one, we copy the data item multiple times. */
static void
-list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p, int kind,
+list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p,
int kind,
size_t size)
{
char c;
...to keep type out of a register and the warning goes away! Can you test that
change
on your system?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22423