From 8271963e39a0a6bfee4d848e1fae4f4e27685204 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 12 Feb 2014 09:10:10 -0700 Subject: [PATCH] clang: fix warnings with clang build Signed-off-by: Jens Axboe --- fio.h | 4 ++-- profiles/tiobench.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fio.h b/fio.h index 719b2f3b..cda46686 100644 --- a/fio.h +++ b/fio.h @@ -343,10 +343,10 @@ enum { #define __td_verror(td, err, msg, func) \ do { \ - int __e = (err); \ + int ____e = (err); \ if ((td)->error) \ break; \ - (td)->error = __e; \ + (td)->error = ____e; \ if (!(td)->first_error) \ snprintf(td->verror, sizeof(td->verror), "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \ } while (0) diff --git a/profiles/tiobench.c b/profiles/tiobench.c index 99c88c45..7a7030af 100644 --- a/profiles/tiobench.c +++ b/profiles/tiobench.c @@ -113,7 +113,6 @@ static int tb_prep_cmdline(void) static struct profile_ops tiobench_profile = { .name = "tiobench", .desc = "tiotest/tiobench benchmark", - .options = options, .prep_cmd = tb_prep_cmdline, .cmdline = tb_opts, .options = options, -- 2.25.1