gcc/libgfortran/io
Tobias Burnus 17df6ddcf1 libgfortran: Fix calloc call by swapping arg order [PR112364]
The prototype of calloc is
  void *calloc(size_t nmemb, size_t size);
denoting "an array of nmemb objects, each of whose size is size." (C23)

In order to follow the meaning of the argument names and to silence
a -Walloc-size warning, this commit swaps the order of the two args
to read now:  calloc (1, sizeof (transfer_queue));

libgfortran/ChangeLog:

	PR libfortran/112364
	* io/async.c (enqueue_transfer, enqueue_done_id, enqueue_done,
	enqueue_close): Swap 1st and 2nd arg in calloc call.
2023-11-06 11:43:28 +01:00
..
async.c libgfortran: Fix calloc call by swapping arg order [PR112364] 2023-11-06 11:43:28 +01:00
async.h Update copyright years. 2023-01-16 11:52:17 +01:00
close.c Update copyright years. 2023-01-16 11:52:17 +01:00
fbuf.c Update copyright years. 2023-01-16 11:52:17 +01:00
fbuf.h Update copyright years. 2023-01-16 11:52:17 +01:00
file_pos.c Update copyright years. 2023-01-16 11:52:17 +01:00
format.c fortran: Fix coding style around free() 2023-05-08 10:46:47 +02:00
format.h Update copyright years. 2023-01-16 11:52:17 +01:00
inquire.c Update copyright years. 2023-01-16 11:52:17 +01:00
intrinsics.c Update copyright years. 2023-01-16 11:52:17 +01:00
io.h Update copyright years. 2023-01-16 11:52:17 +01:00
list_read.c Fortran: Reject semicolon after namelist name. 2023-05-07 19:02:42 -07:00
lock.c Update copyright years. 2023-01-16 11:52:17 +01:00
open.c Update copyright years. 2023-01-16 11:52:17 +01:00
read.c Update copyright years. 2023-01-16 11:52:17 +01:00
size_from_kind.c Update copyright years. 2023-01-16 11:52:17 +01:00
transfer128.c Update copyright years. 2023-01-16 11:52:17 +01:00
transfer.c fortran: Fix coding style around free() 2023-05-08 10:46:47 +02:00
unit.c Fortran: Initialize last_char for internal units. 2023-05-12 13:40:41 -07:00
unix.c fortran: Fix coding style around free() 2023-05-08 10:46:47 +02:00
unix.h Update copyright years. 2023-01-16 11:52:17 +01:00
write_float.def Update copyright years. 2023-01-16 11:52:17 +01:00
write.c libgfortran: Use __builtin_unreachable() not -Wno-stringop-overflow to silence warning 2023-09-28 13:06:13 +02:00