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:
Yi Zhao
2021-03-23 03:15:49 +00:00
committed by Jia Zhang
parent f341b8653c
commit daee77e8d5
@@ -41,6 +41,8 @@ def efi_arch(d):
# --with-libtool-sysroot \ # --with-libtool-sysroot \
#" #"
CFLAGS += "-Wno-error=maybe-uninitialized"
HOST_EXTRACFLAGS += "\ HOST_EXTRACFLAGS += "\
INCLUDES+='-I${S}/lib/ccan.git/ \ INCLUDES+='-I${S}/lib/ccan.git/ \
-I${STAGING_INCDIR_NATIVE}/efi \ -I${STAGING_INCDIR_NATIVE}/efi \