From: Peter Seiderer Date: Sat, 9 May 2020 16:21:16 +0000 (+0200) Subject: package/exfatprogs: fix compile failure missing braces around initializer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25c5aabdfe53050b30f40cbf41aafcbe00b33443;p=buildroot.git package/exfatprogs: fix compile failure missing braces around initializer Add upstream commit to fix host package compile failure. Fixes: http://autobuild.buildroot.net/results/d9c5d17de03f5d0316d5f54f9cd579b79d311d03 fsck.c:1213:9: error: missing braces around initializer [-Werror=missing-braces] struct fsck_user_input ui = {0,}; ^ Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- diff --git a/package/exfatprogs/0004-fsck-Zero-init-using-memset.patch b/package/exfatprogs/0004-fsck-Zero-init-using-memset.patch new file mode 100644 index 0000000000..0ba15149c9 --- /dev/null +++ b/package/exfatprogs/0004-fsck-Zero-init-using-memset.patch @@ -0,0 +1,37 @@ +From 2a60e32258e6eb34a68d29202855d98661c78abb Mon Sep 17 00:00:00 2001 +From: Luca Stefani +Date: Sun, 26 Apr 2020 15:28:21 +0200 +Subject: [PATCH] fsck: Zero-init using memset + +* Clang 9.0 incorrectly issues the -Wmissing-braces warning + +[Upstream: https://github.com/exfatprogs/exfatprogs/commit/b0519f4fa7ce513d65d0f94c4d5a05be42730e7d.patch] +Signed-off-by: Peter Seiderer +--- + fsck/fsck.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/fsck/fsck.c b/fsck/fsck.c +index 6b48a17..67d7946 100644 +--- a/fsck/fsck.c ++++ b/fsck/fsck.c +@@ -1211,11 +1211,14 @@ void exfat_show_stat(void) + int main(int argc, char * const argv[]) + { + int c, ret; +- struct fsck_user_input ui = {0,}; +- struct exfat_blk_dev bd = {0,}; ++ struct fsck_user_input ui; ++ struct exfat_blk_dev bd; + struct exfat *exfat = NULL; + bool version_only = false; + ++ memset(&ui, 0, sizeof(ui)); ++ memset(&bd, 0, sizeof(bd)); ++ + print_level = EXFAT_ERROR; + + if (!setlocale(LC_CTYPE, "")) +-- +2.26.2 +