mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
a59797bbdd
commit
c9b62db723
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue