[meta-freescale] [PATCH] restool: fix build failure with gcc-14
[email protected] Thu, 27 Jun 2024 16:36:05 +0800
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <[email protected]> |
From: Wang Mingyu <[email protected]> Fix incompatible pointer type error with gcc option -Werror=format-overflow=: | restool.c: In function 'main': | restool.c:923:76: error: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Werror=format-overflow=] | 923 | size_buff = sprintf(restool.specified_dev_file, "%s", optarg); | | ^ Signed-off-by: Wang Mingyu <[email protected]> --- recipes-dpaa2/restool/restool_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-dpaa2/restool/restool_git.bb b/recipes-dpaa2/restool/restool_git.bb index 1d1aeffe..a4219c77 100644 --- a/recipes-dpaa2/restool/restool_git.bb +++ b/recipes-dpaa2/restool/restool_git.bb @@ -11,7 +11,7 @@ S = "${WORKDIR}/git" inherit bash-completion -EXTRA_OEMAKE = 'CC="${CC}" MANPAGE= EXTRA_CFLAGS="-O2 -Wno-missing-field-initializers -Wno-missing-braces -Wno-maybe-uninitialized -Wno-date-time"' +EXTRA_OEMAKE = 'CC="${CC}" MANPAGE= EXTRA_CFLAGS="-O2 -Wno-missing-field-initializers -Wno-missing-braces -Wno-maybe-uninitialized -Wno-error=format-overflow -Wno-date-time"' do_install () { oe_runmake install DESTDIR=${D} -- 2.34.1