Fix this: ``` timeout.c: In function ‘test_multi_timeout’: timeout.c:590:20: warning: ‘user_data’ may be used uninitialized in this function [-Wmaybe-uninitialized] 590 | if (cqe->user_data != user_data) { | ^ timeout.c:601:51: warning: ‘time’ may be used uninitialized in this function [-Wmaybe-uninitialized] 601 | if (exp < time / 2 || exp > (time * 3) / 2) { | ~~~~~~^~~~ ``` Fixes: 37136cb4423b27dac2fc663b6a0c513b6d7d7ad1 ("test/timeout: add multi timeout reqs test with different timeout") Cc: zhangyi (F) <yi.zhang@xxxxxxxxxx> Signed-off-by: Ammar Faizi <ammar.faizi@xxxxxxxxxxxxxxxxxxxxx> --- test/timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/timeout.c b/test/timeout.c index f8ba973..8c35b00 100644 --- a/test/timeout.c +++ b/test/timeout.c @@ -563,8 +563,8 @@ static int test_multi_timeout(struct io_uring *ring) gettimeofday(&tv, NULL); for (i = 0; i < 2; i++) { - unsigned int time; - __u64 user_data; + unsigned int time = 0; + __u64 user_data = 0; ret = io_uring_wait_cqe(ring, &cqe); if (ret < 0) { -- 2.30.2