Merge pull request #9776 from miri64/pkg/enh/nimble-llvm

nimble: deactivate -Wunused-function with LLVM/clang
This commit is contained in:
Martine Lenders 2018-08-16 18:03:25 +02:00 committed by GitHub
commit 7d296dfe31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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