kasantest: Fix compilation warning

signed-off-by: W-M-R <Mike_0528@163.com>
This commit is contained in:
W-M-R 2024-10-02 11:33:46 +08:00 committed by Xiang Xiao
parent 94a6f1837a
commit 8d1966e9fc
2 changed files with 11 additions and 4 deletions

View file

@ -19,7 +19,14 @@
# ##############################################################################
if(CONFIG_TESTING_KASAN)
set(CFLAGS -Wno-error -Wno-use-after-free -Wno-array-bounds
-Wno-free-nonheap-object -Wno-stringop-overflow "-O0")
set(CFLAGS
-Wno-error
-Wno-use-after-free
-Wno-array-bounds
-Wno-unused-value
-Wno-unused-variable
-Wno-free-nonheap-object
-Wno-stringop-overflow
"-O0")
nuttx_add_application(NAME kasantest COMPILE_FLAGS ${CFLAGS} SRCS kasantest.c)
endif()

View file

@ -27,9 +27,9 @@ PROGNAME = kasantest
PRIORITY = $(CONFIG_TESTING_KASAN_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_KASAN_STACKSIZE)
CFLAGS += -Wno-error -Wno-use-after-free
CFLAGS += -Wno-error -Wno-use-after-free -Wno-stringop-overflow
CFLAGS += -Wno-array-bounds -Wno-free-nonheap-object
CFLAGS += -Wno-stringop-overflow
CFLAGS += -Wno-unused-value -Wno-unused-variable
CFLAGS += "-O0"
include $(APPDIR)/Application.mk