From 3f0ca9b914e6d0db8c5c457713c277ce458cbc02 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 24 May 2011 21:36:24 +0200 Subject: [PATCH] Silence gcc 4.6 warnings Signed-off-by: Jens Axboe --- filesetup.c | 2 +- options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filesetup.c b/filesetup.c index 1350857f..799202f0 100644 --- a/filesetup.c +++ b/filesetup.c @@ -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 diff --git a/options.c b/options.c index 28a17cf4..a9b05349 100644 --- 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; /* -- 2.25.1