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 <raiden00@railab.me>
This commit is contained in:
raiden00pl 2024-08-27 17:53:44 +02:00 committed by Matteo Golin
parent ded0a17514
commit a9881037ea
2 changed files with 4 additions and 3 deletions

View file

@ -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()

View file

@ -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