Skip to content

Commit

Permalink
kasantest: Fix compilation warning
Browse files Browse the repository at this point in the history
signed-off-by: W-M-R <[email protected]>
  • Loading branch information
W-M-R authored and xiaoxiang781216 committed Oct 2, 2024
1 parent 94a6f18 commit 8d1966e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions testing/kasantest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 2 additions & 2 deletions testing/kasantest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d1966e

Please sign in to comment.