diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-12-14 15:29:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-11 10:39:09 +0000 |
commit | a2e1fd796bcb2da647057d3c147b3c39c2344916 (patch) | |
tree | 714c19c9c629348d7cea107f9c8475c94d4fd646 /meta/recipes-extended/mdadm/mdadm_4.1.bb | |
parent | 1c0473fe4b192fcb6a2d78e9e8772a3a1c7574c7 (diff) | |
download | poky-a2e1fd796bcb2da647057d3c147b3c39c2344916.tar.gz |
mdadm: fix gcc-8 format-truncation warning
While compiling with `-Werror=format-truncation=', it failed
[snip]
|super0.c:236:32: error: 'snprintf' output may be truncated
before the last format character [-Werror=format-truncation=]
| snprintf(nb, sizeof(nb), "%4d", d);
| ^
|super0.c:236:3: note: 'snprintf' output between 5 and 12 bytes
into a destination of size 11
| snprintf(nb, sizeof(nb), "%4d", d);
[snip]
(From OE-Core rev: cd5013a94609ef2f3e0d621339e22e4137d649d3)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_4.1.bb')
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.1.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_4.1.bb b/meta/recipes-extended/mdadm/mdadm_4.1.bb index 9118baaf1a..7663a6b7ec 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.1.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
16 | file://0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch \ | 16 | file://0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch \ |
17 | file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \ | 17 | file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \ |
18 | file://0001-Compute-abs-diff-in-a-standard-compliant-way.patch \ | 18 | file://0001-Compute-abs-diff-in-a-standard-compliant-way.patch \ |
19 | file://0001-fix-gcc-8-format-truncation-warning.patch \ | ||
19 | " | 20 | " |
20 | SRC_URI[md5sum] = "51bf3651bd73a06c413a2f964f299598" | 21 | SRC_URI[md5sum] = "51bf3651bd73a06c413a2f964f299598" |
21 | SRC_URI[sha256sum] = "ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a" | 22 | SRC_URI[sha256sum] = "ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a" |