This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new ff6df40e3 fix -Wmaybe-uninitialized compile warning in nist-sts
ff6df40e3 is described below

commit ff6df40e3cc45095d9e61f4c842d94c897730052
Author: makejian <makej...@xiaomi.com>
AuthorDate: Thu Jul 13 13:58:46 2023 +0800

    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 <makej...@xiaomi.com>
---
 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),)

Reply via email to