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
This commit is contained in:
Thomas Koenig 2008-05-17 22:24:06 +00:00
parent 944d3ef1c4
commit 51407486c4
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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;