From 51407486c46cd3c666f9c4e420368ef9e6992c4a Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Sat, 17 May 2008 22:24:06 +0000 Subject: [PATCH] list_read.c (list_formatted_read_scalar): Declare type as volatile to shut up compiler warning. 2008-05-17 Thomas Koenig * io/list_read.c (list_formatted_read_scalar): Declare type as volatile to shut up compiler warning. From-SVN: r135480 --- libgfortran/ChangeLog | 5 +++++ libgfortran/io/list_read.c | 4 ++-- 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 + + * io/list_read.c (list_formatted_read_scalar): Declare + type as volatile to shut up compiler warning. + 2008-05-16 Janne Blomqvist 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; -- 2.30.2