mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
kasantest: Fix compilation warning
signed-off-by: W-M-R <Mike_0528@163.com>
This commit is contained in:
parent
94a6f1837a
commit
8d1966e9fc
2 changed files with 11 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue