diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2018-06-22 00:27:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-27 13:55:22 +0100 |
commit | 3f5b5c59e727c4553572bce4afad3b9111d75a08 (patch) | |
tree | b26bab36fb02279ef227e265e272dfd78ffe97d6 | |
parent | cd928d3a985b2432d1acd085aa6d26c3d8786e65 (diff) | |
download | poky-3f5b5c59e727c4553572bce4afad3b9111d75a08.tar.gz |
mdadm: fix one more issue when building with gcc8
(From OE-Core rev: 1a0ee6b0f194807b9eac1207c43ba3fae4d1f94c)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch index 8cf52406c4..739652cd55 100644 --- a/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch +++ b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch | |||
@@ -6,6 +6,14 @@ Subject: [PATCH] Disable gcc8 warnings | |||
6 | This is needed until | 6 | This is needed until |
7 | https://bugzilla.redhat.com/show_bug.cgi?id=1553958 | 7 | https://bugzilla.redhat.com/show_bug.cgi?id=1553958 |
8 | 8 | ||
9 | Fix super0.c issue which is triggered only in DEBUG_BUILD with -O1 (or any | ||
10 | configuration without -ftree-vrp or with -fno-tree-vrp) | ||
11 | |||
12 | super0.c: In function 'examine_super0': | ||
13 | super0.c:238:32: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=] | ||
14 | snprintf(nb, sizeof(nb), "%4d", d); | ||
15 | ^ | ||
16 | |||
9 | Upstream-Status: Inappropriate [Workaround] | 17 | Upstream-Status: Inappropriate [Workaround] |
10 | 18 | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
@@ -16,8 +24,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
16 | super-ddf.c | 4 ++++ | 24 | super-ddf.c | 4 ++++ |
17 | super-intel.c | 6 ++++++ | 25 | super-intel.c | 6 ++++++ |
18 | super1.c | 5 +++++ | 26 | super1.c | 5 +++++ |
19 | 5 files changed, 22 insertions(+), 1 deletion(-) | 27 | super0.c | 2 +- |
28 | 6 files changed, 22 insertions(+), 1 deletion(-) | ||
20 | 29 | ||
30 | diff --git a/super0.c b/super0.c | ||
31 | index f5b4507..264b598 100644 | ||
32 | --- a/super0.c | ||
33 | +++ b/super0.c | ||
34 | @@ -231,7 +231,7 @@ | ||
35 | d++) { | ||
36 | mdp_disk_t *dp; | ||
37 | char *dv; | ||
38 | - char nb[11]; | ||
39 | + char nb[12]; | ||
40 | int wonly, failfast; | ||
41 | if (d>=0) dp = &sb->disks[d]; | ||
42 | else dp = &sb->this_disk; | ||
21 | diff --git a/Monitor.c b/Monitor.c | 43 | diff --git a/Monitor.c b/Monitor.c |
22 | index 802a9d9..23b246b 100644 | 44 | index 802a9d9..23b246b 100644 |
23 | --- a/Monitor.c | 45 | --- a/Monitor.c |