From f54b69c35edf6c4f4bd4a1cf4509b314c298adb2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 24 Feb 2022 11:05:41 -0800 Subject: [PATCH] Fix three compiler warnings Fix three occurrences of the following clang compiler warning: warning: suggest braces around initialization of subobject [-Wmissing-braces] Signed-off-by: Bart Van Assche --- engines/cmdprio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/cmdprio.c b/engines/cmdprio.c index dd358754..979a81b6 100644 --- a/engines/cmdprio.c +++ b/engines/cmdprio.c @@ -319,7 +319,7 @@ static int fio_cmdprio_gen_perc(struct thread_data *td, struct cmdprio *cmdprio) { struct cmdprio_options *options = cmdprio->options; struct cmdprio_prio *prio; - struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {0}; + struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {}; struct thread_stat *ts = &td->ts; enum fio_ddir ddir; int ret; @@ -368,8 +368,8 @@ static int fio_cmdprio_parse_and_gen_bssplit(struct thread_data *td, struct cmdprio *cmdprio) { struct cmdprio_options *options = cmdprio->options; - struct cmdprio_parse_result parse_res[CMDPRIO_RWDIR_CNT] = {0}; - struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {0}; + struct cmdprio_parse_result parse_res[CMDPRIO_RWDIR_CNT] = {}; + struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {}; struct thread_stat *ts = &td->ts; int ret, implicit_cmdprio; enum fio_ddir ddir; -- 2.25.1