diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2008-05-17 22:24:06 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2008-05-17 22:24:06 +0000 |
commit | 51407486c46cd3c666f9c4e420368ef9e6992c4a (patch) | |
tree | a9168ecf0edd3861f6ea2a733970f1f30f533cdf | |
parent | 944d3ef1c43b09c8867c65528339cd2cfef6f68f (diff) | |
download | gcc-51407486c46cd3c666f9c4e420368ef9e6992c4a.zip gcc-51407486c46cd3c666f9c4e420368ef9e6992c4a.tar.gz gcc-51407486c46cd3c666f9c4e420368ef9e6992c4a.tar.bz2 |
list_read.c (list_formatted_read_scalar): Declare type as volatile to shut up compiler warning.
2008-05-17 Thomas Koenig <tkoenig@gcc.gnu.org>
* io/list_read.c (list_formatted_read_scalar): Declare
type as volatile to shut up compiler warning.
From-SVN: r135480
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 4d095a6..cc61470 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2008-05-17 Thomas Koenig <tkoenig@gcc.gnu.org> + + * io/list_read.c (list_formatted_read_scalar): Declare + type as volatile to shut up compiler warning. + 2008-05-16 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/25561 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 3837f7e..1aa8470 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -1724,8 +1724,8 @@ check_type (st_parameter_dt *dtp, bt type, int len) 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, - size_t size) +list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p, + int kind, size_t size) { char c; int m; |