Skip to content
Snippets Groups Projects
Commit 2f15aa97 authored by Martine Lenders's avatar Martine Lenders
Browse files

nimble: deactivate -Wunused-function with LLVM/clang

When building `nimble` with LLVM/clang the function
`ble_ll_adv_active_chanset_is_sec()` in `ble_ll_adv.c` is reported to
be unused, it is used within an assertions and `ifdef`s within that
file though. So this just disables that warning.
parent 0c14681a
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,12 @@ PDIR = $(PKG_BUILDDIR) ...@@ -9,6 +9,12 @@ PDIR = $(PKG_BUILDDIR)
# As of now, NimBLE does not build without warnings for -Wextra, so we disable # As of now, NimBLE does not build without warnings for -Wextra, so we disable
# that flag for this package. Will hopefully be fixed some time in the future. # that flag for this package. Will hopefully be fixed some time in the future.
CFLAGS += -Wno-extra CFLAGS += -Wno-extra
# the static function `ble_ll_adv_active_chanset_is_sec()` in
# `nimble/controller/src/ble_ll_adv.c` isn't used in our compilation path, so
# tell LLVM/clang not to be so pedantic with this.
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-unused-function
endif
.PHONY: all .PHONY: all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment