mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 04:36:58 +00:00
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>
This commit is contained in:
@@ -41,6 +41,8 @@ def efi_arch(d):
|
||||
# --with-libtool-sysroot \
|
||||
#"
|
||||
|
||||
CFLAGS += "-Wno-error=maybe-uninitialized"
|
||||
|
||||
HOST_EXTRACFLAGS += "\
|
||||
INCLUDES+='-I${S}/lib/ccan.git/ \
|
||||
-I${STAGING_INCDIR_NATIVE}/efi \
|
||||
|
||||
Reference in New Issue
Block a user