From 585ef66edaacfd16a91b5ed94488f4ab2113f596 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 6 Jan 2020 08:47:17 -0800 Subject: [PATCH] Fix the build in case FIO_HAVE_DISK_UTIL is not defined This patch fixes the following build error: stat.c: In function 'show_thread_status_terse_all': stat.c:1243:31: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] show_disk_util(1, NULL, out); ^ Signed-off-by: Bart Van Assche --- diskutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskutil.h b/diskutil.h index 15ec681a..f6b09d22 100644 --- a/diskutil.h +++ b/diskutil.h @@ -120,7 +120,7 @@ static inline void print_disk_util(struct disk_util_stat *du, struct buf_output *out) { } -#define show_disk_util(terse, parent, out) +#define show_disk_util(terse, parent, out) do { } while (0) #define disk_util_prune_entries() #define init_disk_util(td) #define setup_disk_util() -- 2.25.1