Silence warning on older gcc (bogus)
authorJens Axboe <jens.axboe@oracle.com>
Fri, 23 May 2008 11:28:59 +0000 (13:28 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 23 May 2008 11:28:59 +0000 (13:28 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index c728168d7ce48086c9e15d777eb0c2e9ab13f166..c3939b32ad0df0f101fa24d0bdfef6ebe716c0ff 100644 (file)
--- 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;
 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])
        long r;
 
        if (td->o.min_bs[ddir] == td->o.max_bs[ddir])