From ff6df40e3cc45095d9e61f4c842d94c897730052 Mon Sep 17 00:00:00 2001 From: makejian Date: Thu, 13 Jul 2023 13:58:46 +0800 Subject: [PATCH] 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 --- testing/nist-sts/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/nist-sts/Makefile b/testing/nist-sts/Makefile index d4dd405a1..771c1ad47 100644 --- a/testing/nist-sts/Makefile +++ b/testing/nist-sts/Makefile @@ -49,7 +49,8 @@ $(NIST_UNPACKNAME): $(NIST_ZIP) MAINSRC = nist-sts/sts/src/assess.c CSRCS = $(shell find nist-sts/sts/src -name "*.c" ! -name "assess.c") 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 ifeq ($(wildcard $(NIST_UNPACKNAME)/.git),)