From fc4398fdf45b76c3aa11e14e78fc41a1fb42eb7e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 May 2008 13:28:59 +0200 Subject: [PATCH] Silence warning on older gcc (bogus) Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_u.c b/io_u.c index c728168d..c3939b32 100644 --- a/io_u.c +++ b/io_u.c @@ -217,7 +217,7 @@ static int get_next_offset(struct thread_data *td, struct io_u *io_u) static unsigned int get_next_buflen(struct thread_data *td, struct io_u *io_u) { const int ddir = io_u->ddir; - unsigned int buflen; + unsigned int buflen = buflen; /* silence dumb gcc warning */ long r; if (td->o.min_bs[ddir] == td->o.max_bs[ddir]) -- 2.25.1