From: Jens Axboe Date: Tue, 24 May 2011 19:36:24 +0000 (+0200) Subject: Silence gcc 4.6 warnings X-Git-Tag: fio-1.55~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3f0ca9b914e6d0db8c5c457713c277ce458cbc02;p=fio.git Silence gcc 4.6 warnings Signed-off-by: Jens Axboe --- 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; /*