summaryrefslogtreecommitdiffstats
path: root/libgfortran
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-17 22:24:06 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-17 22:24:06 +0000
commit76f37b3fc7d2574068d3fcfe9ea6668095bf88a6 (patch)
treea9168ecf0edd3861f6ea2a733970f1f30f533cdf /libgfortran
parent62a58af7bb06f9eced590f7756b7cf7ac0a31f8c (diff)
downloadppe42-gcc-76f37b3fc7d2574068d3fcfe9ea6668095bf88a6.tar.gz
ppe42-gcc-76f37b3fc7d2574068d3fcfe9ea6668095bf88a6.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/list_read.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4d095a6ddcd..cc614707e0e 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 3837f7ecf2e..1aa84704d8a 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;
OpenPOWER on IntegriCloud