diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-03-23 03:15:49 +0000 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2021-03-24 18:11:20 +0800 |
commit | daee77e8d59a8d2912b3170551115ded56df1eae (patch) | |
tree | 591e0b17ad21b873f24d89e6cd18765f2bc990a8 | |
parent | f341b8653c65460d03a652a4af39fc876ea8a992 (diff) | |
download | meta-secure-core-daee77e8d59a8d2912b3170551115ded56df1eae.tar.gz |
sbsigntool: fix compile error when enable DEBUG_BUILD
Fixes the following error 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;
| ~~~~~~~~~^~~~~
cc1: all warnings being treated as errors
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
-rw-r--r-- | meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb b/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb index 0ec2250..c9cc615 100644 --- a/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb +++ b/meta-signing-key/recipes-devtools/sbsigntool/sbsigntool_git.bb | |||
@@ -41,6 +41,8 @@ def efi_arch(d): | |||
41 | # --with-libtool-sysroot \ | 41 | # --with-libtool-sysroot \ |
42 | #" | 42 | #" |
43 | 43 | ||
44 | CFLAGS += "-Wno-error=maybe-uninitialized" | ||
45 | |||
44 | HOST_EXTRACFLAGS += "\ | 46 | HOST_EXTRACFLAGS += "\ |
45 | INCLUDES+='-I${S}/lib/ccan.git/ \ | 47 | INCLUDES+='-I${S}/lib/ccan.git/ \ |
46 | -I${STAGING_INCDIR_NATIVE}/efi \ | 48 | -I${STAGING_INCDIR_NATIVE}/efi \ |