mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/benchmarks/dhrystone: Fix compilation errors
Error details:
dhrystone/v2.2/dry.c:714:3: error: 'Int_2_Loc' may be used uninitialized [-Werror=maybe-uninitialized]
714 | fprintf (stderr, "Int_2_Loc: %d\n", Int_2_Loc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dhrystone/v2.2/dry.c:543:25: note: 'Int_2_Loc' was declared here
543 | REG One_Fifty Int_2_Loc;
| ^~~~~~~~~
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
parent
bb957498cc
commit
8ed046e2d6
2 changed files with 5 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ if(CONFIG_BENCHMARK_DHRYSTONE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
set(CFLAGS -DMSC_CLOCK)
|
||||
set(CFLAGS
|
||||
-DMSC_CLOCK -Wno-maybe-uninitialized -Wno-implicit-int
|
||||
-Wno-strict-prototypes -Wno-implicit-function-declaration
|
||||
-Wno-return-type)
|
||||
set(SRCS dhrystone/v2.2/dry.c dhrystone/v2.1/dhry_2.c)
|
||||
|
||||
nuttx_add_application(
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ MODULE = $(CONFIG_BENCHMARK_DHRYSTONE)
|
|||
|
||||
CFLAGS += -DMSC_CLOCK -Wno-implicit-int -Wno-strict-prototypes
|
||||
CFLAGS += -Wno-implicit-function-declaration -Wno-return-type
|
||||
CFLAGS += -Wno-maybe-uninitialized
|
||||
|
||||
CSRCS += dhrystone/v2.1/dhry_2.c
|
||||
MAINSRC = dhrystone/v2.2/dry.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue