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

acassis 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 15ef9781c coremark-pro:Ignore the implementation warning
15ef9781c is described below

commit 15ef9781c5372546cd09c3a65c3982d3a7fbe3a8
Author: chenrun1 <[email protected]>
AuthorDate: Mon Mar 4 16:55:05 2024 +0800

    coremark-pro:Ignore the implementation warning
    
    Summary:
      Avoiding warnings caused by source code implementation leads to build 
failure. Most warnings are undef and the value is 0. We think it is not enabled.
    
    Signed-off-by: chenrun1 <[email protected]>
---
 benchmarks/coremark-pro/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/benchmarks/coremark-pro/Makefile b/benchmarks/coremark-pro/Makefile
index c0ee5a2a3..0fa3a0986 100644
--- a/benchmarks/coremark-pro/Makefile
+++ b/benchmarks/coremark-pro/Makefile
@@ -24,10 +24,13 @@ PRIORITY  = $(CONFIG_BENCHMARK_COREMARK_PRO_PRIORITY)
 STACKSIZE = $(CONFIG_BENCHMARK_COREMARK_PRO_STACKSIZE)
 MODULE    = $(CONFIG_BENCHMARK_COREMARK_PRO)
 
+CFLAGS += -Wno-undef -Wno-strict-prototypes -Wno-unused-variable \
+          -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-shadow
 CFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/benchmarks/coremark-pro/coremark-pro/mith/include
 CFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/benchmarks/coremark-pro/coremark-pro/mith/al/include
 CFLAGS += -DNDEBUG -DHOST_EXAMPLE_CODE=1 -DHAVE_SYS_STAT_H=1 \
           -DGCC_INLINE_MACRO=1 -DMAX_CONTEXTS=100 -DEE_SIZEOF_INT=4 \
+          -DUSE_FP128=0
 
 ifneq ($(CONFIG_BENCHMARK_COREMARK_PRO_USE_SINGLE_CONTEXT),)
   CFLAGS += -DUSE_SINGLE_CONTEXT=1 -DHAVE_PTHREAD=0 -DUSE_NATIVE_PTHREAD=0
@@ -44,10 +47,10 @@ ifneq ($(CONFIG_BENCHMARK_COREMARK_PRO_64BIT),)
 endif
 
 ifneq ($(CONFIG_BENCHMARK_COREMARK_PRO_USE_FP64),)
-  CFLAGS += -DUSE_FP64=1
+  CFLAGS += -DUSE_FP64=1 -DUSE_FP32=0
   CSRCS  += coremark-pro/benchmarks/fp/linpack/ref/inputs_f64.c
 else
-  CFLAGS += -DUSE_FP32=1
+  CFLAGS += -DUSE_FP32=1 -DUSE_FP64=0
   CSRCS  += coremark-pro/benchmarks/fp/linpack/ref/inputs_f32.c
 endif
 

Reply via email to