diff --git a/testing/kasantest/CMakeLists.txt b/testing/kasantest/CMakeLists.txt index 58ec8426e58..8a06a10eafb 100644 --- a/testing/kasantest/CMakeLists.txt +++ b/testing/kasantest/CMakeLists.txt @@ -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() diff --git a/testing/kasantest/Makefile b/testing/kasantest/Makefile index 9a84beeee26..21b766a1027 100644 --- a/testing/kasantest/Makefile +++ b/testing/kasantest/Makefile @@ -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