Skip to content

Commit 8d1966e

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
kasantest: Fix compilation warning
signed-off-by: W-M-R <[email protected]>
1 parent 94a6f18 commit 8d1966e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

testing/kasantest/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
# ##############################################################################
2020

2121
if(CONFIG_TESTING_KASAN)
22-
set(CFLAGS -Wno-error -Wno-use-after-free -Wno-array-bounds
23-
-Wno-free-nonheap-object -Wno-stringop-overflow "-O0")
22+
set(CFLAGS
23+
-Wno-error
24+
-Wno-use-after-free
25+
-Wno-array-bounds
26+
-Wno-unused-value
27+
-Wno-unused-variable
28+
-Wno-free-nonheap-object
29+
-Wno-stringop-overflow
30+
"-O0")
2431
nuttx_add_application(NAME kasantest COMPILE_FLAGS ${CFLAGS} SRCS kasantest.c)
2532
endif()

testing/kasantest/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ PROGNAME = kasantest
2727
PRIORITY = $(CONFIG_TESTING_KASAN_PRIORITY)
2828
STACKSIZE = $(CONFIG_TESTING_KASAN_STACKSIZE)
2929

30-
CFLAGS += -Wno-error -Wno-use-after-free
30+
CFLAGS += -Wno-error -Wno-use-after-free -Wno-stringop-overflow
3131
CFLAGS += -Wno-array-bounds -Wno-free-nonheap-object
32-
CFLAGS += -Wno-stringop-overflow
32+
CFLAGS += -Wno-unused-value -Wno-unused-variable
3333
CFLAGS += "-O0"
3434

3535
include $(APPDIR)/Application.mk

0 commit comments

Comments
 (0)