Skip to content

Commit

Permalink
Fix the build in case FIO_HAVE_DISK_UTIL is not defined
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bvanassche committed Jan 6, 2020
1 parent a932a2c commit 585ef66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diskutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 585ef66

Please sign in to comment.