From: Jens Axboe Date: Fri, 23 May 2008 11:28:59 +0000 (+0200) Subject: Silence warning on older gcc (bogus) X-Git-Tag: fio-1.21-rc1~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fc4398fdf45b76c3aa11e14e78fc41a1fb42eb7e;p=fio.git Silence warning on older gcc (bogus) Signed-off-by: Jens Axboe --- 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])