]> code.ossystems Code Review - openembedded-core.git/commit
mdadm: add -Wno-error to DEBUG_OPTIMIZATION
authorChangqing Li <changqing.li@windriver.com>
Fri, 22 Mar 2019 03:57:48 +0000 (11:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Mar 2019 11:56:52 +0000 (11:56 +0000)
commit1e0dbc9e320b200b948abaae418f640f9f65fe06
treedf3b86174b42bc002bb6602ecccb3eefa44e34d4
parente2df6087694af09715141c5cb38af3e7db4ad758
mdadm: add -Wno-error to DEBUG_OPTIMIZATION

when compile with DEBUG_OPTIMIZATION(-Og), compile failed with below
error, fix by add -Wno-error:

[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/mdadm_4.1.bb