From 47494aa9927d119ebf1ea1a877d5263d16889665 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 27 Aug 2024 17:53:44 +0200 Subject: [PATCH] nimble: remove -Wno-pointer-to-int-cast from CFLAGS it's not needed and cause warnings for C++ builds: cc1plus: warning: command-line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ Signed-off-by: raiden00pl --- wireless/bluetooth/nimble/CMakeLists.txt | 5 +++-- wireless/bluetooth/nimble/Makefile.nimble | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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