Fix fill_device with queue depth higher than 1
[fio.git] / filesetup.c
index 2b690c8930d91cc39eeac8e4fb8a845409c96a86..799202f0da5bbccf9b7aca0e90fc7f7ed5293004 100644 (file)
@@ -208,7 +208,7 @@ static int pre_read_file(struct thread_data *td, struct fio_file *f)
 static unsigned long long get_rand_file_size(struct thread_data *td)
 {
        unsigned long long ret, sized;
-       long r;
+       unsigned long r;
 
        if (td->o.use_os_rand) {
                r = os_random_long(&td->file_size_state);
@@ -504,7 +504,7 @@ open_again:
 
        if (!from_hash && f->fd != -1) {
                if (add_file_hash(f)) {
-                       int ret;
+                       int fio_unused ret;
 
                        /*
                         * OK to ignore, we haven't done anything with it