]> code.ossystems Code Review - openembedded-core.git/commit
mdadm: fix gcc8 maybe-uninitialized/format-overflow warning
authorChangqing Li <changqing.li@windriver.com>
Tue, 12 Mar 2019 09:41:58 +0000 (17:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Mar 2019 11:09:55 +0000 (11:09 +0000)
commit630281663893cdcfa9c4323b717b415d87d5510f
tree0fb5f7018a59067398ce12e9d181be8cb7df2bfb
parent1e9120096da81171e9213b0b78df0aff7002de15
mdadm: fix gcc8 maybe-uninitialized/format-overflow warning

while compiled with -Werror=maybe-uninitialized/-Werror=format-overflow=,
it failed

[snip]
| Incremental.c: In function 'Incremental_container':
| Incremental.c:1593:3: error: 'mdfd' may be used uninitialized in this function [-Werror=maybe-uninitialized]
| close(mdfd);
| ^~~~~~~~~~~

[snip]
super-intel.c: In function 'apply_takeover_update':
| super-intel.c:9615:15: error: '%d' directive writing between 1 and 11 bytes into a region of size 7 [-Werror=format-overflow=]
| " MISSING_%d", du->index);
| ^~

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/mdadm/files/0001-mdadm-gcc8-maybe-uninitialized-format-overflow-warni.patch [new file with mode: 0644]
meta/recipes-extended/mdadm/mdadm_4.1.bb