Silence gcc 4.6 warnings
authorJens Axboe <jaxboe@fusionio.com>
Tue, 24 May 2011 19:36:24 +0000 (21:36 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 24 May 2011 19:36:24 +0000 (21:36 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
filesetup.c
options.c

index 1350857ffb04d9f4ed1274298675f9a94adf44a8..799202f0da5bbccf9b7aca0e90fc7f7ed5293004 100644 (file)
@@ -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
index 28a17cf4a20870f6e86c44b68d591e576cbc967e..a9b05349a808d09b0596202c3d015eeca2277229 100644 (file)
--- a/options.c
+++ b/options.c
@@ -482,6 +482,7 @@ static int str_sfr_cb(void *data, const char *str)
 
 static int check_dir(struct thread_data *td, char *fname)
 {
+#if 0
        char file[PATH_MAX], *dir;
        int elen = 0;
 
@@ -494,7 +495,6 @@ static int check_dir(struct thread_data *td, char *fname)
        sprintf(file + elen, "%s", fname);
        dir = dirname(file);
 
-#if 0
        {
        struct stat sb;
        /*