* [PATCH] remove zero-size array in io_uring.h
@ 2020-11-05 14:02 Akinobu Mita
2020-11-05 17:02 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2020-11-05 14:02 UTC (permalink / raw)
To: io-uring; +Cc: Akinobu Mita
This fixes compilation with -Werror=pedantic.
Signed-off-by: Akinobu Mita <[email protected]>
---
src/include/liburing/io_uring.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index e52ad2d..8555de9 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -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 {
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] remove zero-size array in io_uring.h
2020-11-05 14:02 [PATCH] remove zero-size array in io_uring.h Akinobu Mita
@ 2020-11-05 17:02 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2020-11-05 17:02 UTC (permalink / raw)
To: Akinobu Mita, io-uring
On 11/5/20 7:02 AM, Akinobu Mita wrote:
> This fixes compilation with -Werror=pedantic.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-05 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-05 14:02 [PATCH] remove zero-size array in io_uring.h Akinobu Mita
2020-11-05 17:02 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox