From 00a9c693489744208c3dfa6c023a1c79342d03a8 Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Wed, 9 Jul 2014 09:52:19 -0700 Subject: [PATCH] Fully initialize a couple structures Caused missing-field-initializers warnings from clang, but surprisingly not from gcc. --- vpi/sys_fst.c | 4 ++-- vpi/sys_vcd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vpi/sys_fst.c b/vpi/sys_fst.c index 5d2fe3cf7..a4ba03f7d 100644 --- a/vpi/sys_fst.c +++ b/vpi/sys_fst.c @@ -112,8 +112,8 @@ static void show_this_item_x(struct vcd_info*info) * managed qsorted list of scope names/variables for duplicates bsearching */ -struct vcd_names_list_s fst_tab = { 0 }; -struct vcd_names_list_s fst_var = { 0 }; +struct vcd_names_list_s fst_tab = { 0, 0, 0, 0 }; +struct vcd_names_list_s fst_var = { 0, 0, 0, 0 }; static int dumpvars_status = 0; /* 0:fresh 1:cb installed, 2:callback done */ diff --git a/vpi/sys_vcd.c b/vpi/sys_vcd.c index ea4ccb7b2..c0e565aa5 100644 --- a/vpi/sys_vcd.c +++ b/vpi/sys_vcd.c @@ -144,8 +144,8 @@ static void show_this_item_x(struct vcd_info*info) * managed qsorted list of scope names/variables for duplicates bsearching */ -struct vcd_names_list_s vcd_tab = { 0 }; -struct vcd_names_list_s vcd_var = { 0 }; +struct vcd_names_list_s vcd_tab = { 0, 0, 0, 0 }; +struct vcd_names_list_s vcd_var = { 0, 0, 0, 0 }; static int dumpvars_status = 0; /* 0:fresh 1:cb installed, 2:callback done */