s390/diag: Replace zero-length array with flexible-array member
PATCH 1/1 s390/diag: Replace zero-length array with flexible-array member
Zero-length arrays are deprecated [1] and have to be replaced by C99 flexible-array members.
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help to make progress towards globally enabling -fstrict-flex-arrays=3 [2]
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- arch/s390/include/asm/diag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/include/asm/diag.h +1 -1
@@ -90,7 +90,7 @@ struct diag8c {u8 num_partitions;u16 width;u16 height; -u8 data[0 ]; +u8 data[]; } __packed__aligned(4) ;extern int diag8c (struct diag8c *out,struct ccw_dev_id *devno);
Signature · 1 line
2.34.1