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 <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
b6ff166254
commit
25c5aabdfe
37
package/exfatprogs/0004-fsck-Zero-init-using-memset.patch
Normal file
37
package/exfatprogs/0004-fsck-Zero-init-using-memset.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From 2a60e32258e6eb34a68d29202855d98661c78abb Mon Sep 17 00:00:00 2001
|
||||
From: Luca Stefani <luca.stefani.ge1@gmail.com>
|
||||
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 <ps.report@gmx.net>
|
||||
---
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user