1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
From e5643a0cc9d661643541d6c965ac0ea59a77db75 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
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
|