diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-06-22 11:44:12 +0800 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2021-07-07 14:26:51 +0800 |
commit | 31502fb8f29eb99b0f6fc607877812fb850c0b06 (patch) | |
tree | 72355d8a1f3bcd206756040059ecfbb803a9425d /meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb | |
parent | 551137d4ebfd410a4995f705e70a85e4fa0192f4 (diff) | |
download | meta-secure-core-31502fb8f29eb99b0f6fc607877812fb850c0b06.tar.gz |
sbsigntool: fix compile error when enable DEBUG_BUILD
Fixes the following errors when set DEBUG_BUILD = "1":
fileio.c: In function ‘__fileio_read_file’:
fileio.c:179:12: error: ‘len’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
179 | *out_len = len;
| ~~~~~~~~~^~~~~
fileio.c:178:12: error: ‘buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
178 | *out_buf = buf;
| ~~~~~~~~~^~~~~
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Diffstat (limited to 'meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb')
-rw-r--r-- | meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb b/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb index c38fa42..b742e08 100644 --- a/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb +++ b/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb | |||
@@ -17,6 +17,7 @@ SRC_URI = " \ | |||
17 | file://0002-docs-Don-t-build-man-pages.patch \ | 17 | file://0002-docs-Don-t-build-man-pages.patch \ |
18 | file://0003-sbsign-add-x-option-to-avoid-overwrite-existing-sign.patch \ | 18 | file://0003-sbsign-add-x-option-to-avoid-overwrite-existing-sign.patch \ |
19 | file://0001-src-Makefile.am-Add-read_write_all.c-to-common_SOURC.patch \ | 19 | file://0001-src-Makefile.am-Add-read_write_all.c-to-common_SOURC.patch \ |
20 | file://0001-fileio.c-initialize-local-variables-before-use-in-fu.patch \ | ||
20 | " | 21 | " |
21 | SRCREV_sbsigntools ?= "f12484869c9590682ac3253d583bf59b890bb826" | 22 | SRCREV_sbsigntools ?= "f12484869c9590682ac3253d583bf59b890bb826" |
22 | SRCREV_ccan ?= "b1f28e17227f2320d07fe052a8a48942fe17caa5" | 23 | SRCREV_ccan ?= "b1f28e17227f2320d07fe052a8a48942fe17caa5" |
@@ -42,8 +43,6 @@ def efi_arch(d): | |||
42 | # --with-libtool-sysroot \ | 43 | # --with-libtool-sysroot \ |
43 | #" | 44 | #" |
44 | 45 | ||
45 | CFLAGS += "-Wno-error=maybe-uninitialized" | ||
46 | |||
47 | HOST_EXTRACFLAGS += "\ | 46 | HOST_EXTRACFLAGS += "\ |
48 | INCLUDES+='-I${S}/lib/ccan.git/ \ | 47 | INCLUDES+='-I${S}/lib/ccan.git/ \ |
49 | -I${STAGING_INCDIR_NATIVE}/efi \ | 48 | -I${STAGING_INCDIR_NATIVE}/efi \ |