diff --git a/wireless/bluetooth/nimble/CMakeLists.txt b/wireless/bluetooth/nimble/CMakeLists.txt index 1abf4a57612..f6fda14ec95 100644 --- a/wireless/bluetooth/nimble/CMakeLists.txt +++ b/wireless/bluetooth/nimble/CMakeLists.txt @@ -193,7 +193,8 @@ 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-unused-but-set-variable) + target_compile_options(nimble PUBLIC -Wno-undef -Wno-format + -Wno-unused-but-set-variable) + target_sources(nimble PRIVATE ${SRCS}) endif() diff --git a/wireless/bluetooth/nimble/Makefile.nimble b/wireless/bluetooth/nimble/Makefile.nimble index 8a4281dfaf3..0b86a8263f4 100644 --- a/wireless/bluetooth/nimble/Makefile.nimble +++ b/wireless/bluetooth/nimble/Makefile.nimble @@ -64,7 +64,7 @@ CXXFLAGS += $(addprefix ${INCDIR_PREFIX}, $(NIMBLE_ALL_INC)) # NimBLE assumes this flag since it expects undefined macros to be zero value -CFLAGS += -Wno-pointer-to-int-cast -Wno-undef +CFLAGS += -Wno-undef # disable printf format checks