From 7ab9a6e431ed6d5f9da0bfe023ed804b8efd18be Mon Sep 17 00:00:00 2001 From: jxltom Date: Sat, 9 May 2020 11:56:52 +0800 Subject: [PATCH] Fix warning: missing braces around initializer --- mempools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mempools.c b/mempools.c index aac85dc4..ff3ecbe7 100644 --- a/mempools.c +++ b/mempools.c @@ -31,8 +31,8 @@ typedef struct { } appconf_container_t; // Private variables -static mcconf_container_t m_mc_confs[MEMPOOLS_MCCONF_NUM] = {0}; -static appconf_container_t m_app_confs[MEMPOOLS_APPCONF_NUM] = {0}; +static mcconf_container_t m_mc_confs[MEMPOOLS_MCCONF_NUM] = {{0}}; +static appconf_container_t m_app_confs[MEMPOOLS_APPCONF_NUM] = {{0}}; static int m_mcconf_highest = 0; static int m_appconf_highest = 0;