nimble: Ignore nimble compile warnings

Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it

services/ans/src/ble_svc_ans.c:450:9: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]
  450 |     int rc;
      |         ^~

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-05-13 14:01:46 +08:00 committed by Xiang Xiao
parent a59797bbdd
commit c9b62db723
2 changed files with 2 additions and 2 deletions

View File

@ -194,6 +194,6 @@ if(CONFIG_NIMBLE)
target_include_directories(nimble PUBLIC include ${INCLUDES})
target_compile_options(nimble PUBLIC -Wno-pointer-to-int-cast -Wno-undef
-Wno-format)
-Wno-format -Wno-unused-but-set-variable)
target_sources(nimble PRIVATE ${SRCS})
endif()

View File

@ -66,4 +66,4 @@ CFLAGS += -Wno-pointer-to-int-cast -Wno-undef
# disable printf format checks
CFLAGS += -Wno-format
CFLAGS += -Wno-format -Wno-unused-but-set-variable