fix -Wmaybe-uninitialized compile warning in nist-sts

fix compile warning as following:
nist-sts/sts/src/cusum.c:15:23: warning: 'zerv' may be used uninitialized in this function[-Werror=maybe-uninitialized]

Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian 2023-07-13 13:58:46 +08:00 committed by Xiang Xiao
parent 89a1255dc2
commit ff6df40e3c

View File

@ -49,7 +49,8 @@ $(NIST_UNPACKNAME): $(NIST_ZIP)
MAINSRC = nist-sts/sts/src/assess.c MAINSRC = nist-sts/sts/src/assess.c
CSRCS = $(shell find nist-sts/sts/src -name "*.c" ! -name "assess.c") CSRCS = $(shell find nist-sts/sts/src -name "*.c" ! -name "assess.c")
CFLAGS += -Wno-misleading-indentation -Wno-unused-but-set-variable \ CFLAGS += -Wno-misleading-indentation -Wno-unused-but-set-variable \
-Wno-strict-prototypes -Wno-undef -Wno-shadow -Wno-unused-variable -Wno-strict-prototypes -Wno-undef -Wno-shadow -Wno-unused-variable \
-Wno-maybe-uninitialized
# Download and unpack tarball if no git repo found # Download and unpack tarball if no git repo found
ifeq ($(wildcard $(NIST_UNPACKNAME)/.git),) ifeq ($(wildcard $(NIST_UNPACKNAME)/.git),)