Skip to contentSkip to conversation

remove zero-size array in io_uring.h

PATCH Applied Akinobu Mita 2 participants 2 messages Nov 5, 2020 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove zero-size array in io_uring.h

This fixes compilation with -Werror=pedantic.

---
 src/include/liburing/io_uring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/include/liburing/io_uring.h +1 -1
index e52ad2d..8555de9 100644
@@ -308,7 +308,7 @@ struct io_uring_probe {
 	__u8 ops_len;	/* length of ops[] array below */
 	__u16 resv;
 	__u32 resv2[3];
-	struct io_uring_probe_op ops[0];
+	struct io_uring_probe_op ops[];
 };
 
 struct io_uring_restriction {
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 1 line · Akinobu Mita

This fixes compilation with -Werror=pedantic.

Applied, thanks.

Signature · 1 line
Jens Axboe