From e5643a0cc9d661643541d6c965ac0ea59a77db75 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 1 May 2021 01:01:49 -0700 Subject: [PATCH] Avoid empty initializer lists These are not allowed in ISO C. --- common/image.c | 2 +- tools/kwbimage.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/image.c b/common/image.c index 51854aae5d..1610c9c5c0 100644 --- a/common/image.c +++ b/common/image.c @@ -216,7 +216,7 @@ static const struct comp_magic_map image_comp[] = { { IH_COMP_GZIP, "gzip", {0x1f, 0x8b},}, { IH_COMP_LZMA, "lzma", {0x5d, 0x00},}, { IH_COMP_LZO, "lzo", {0x89, 0x4c},}, - { IH_COMP_NONE, "none", {}, }, + { IH_COMP_NONE, "none", {0}, }, }; static const struct table_info table_info[IH_COUNT] = { diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 02fd0c949f..11b174a026 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -70,7 +70,7 @@ struct boot_mode boot_modes[] = { { 0x9C, "pex" }, { 0x69, "uart" }, { 0xAE, "sdio" }, - {}, + { 0 }, }; struct nand_ecc_mode { @@ -83,7 +83,7 @@ struct nand_ecc_mode nand_ecc_modes[] = { { 0x01, "hamming" }, { 0x02, "rs" }, { 0x03, "disabled" }, - {}, + { 0 }, }; /* Used to identify an undefined execution or destination address */ -- 2.31.1