Skip to content
Snippets Groups Projects
Commit d5b019fd authored by Hauke Petersen's avatar Hauke Petersen
Browse files

pkg/nimble: disable selected compiler warnings

parent 30dc2d91
No related branches found
No related tags found
No related merge requests found
......@@ -6,14 +6,17 @@ PKG_LICENSE = Apache-2.0
TDIR = $(RIOTPKG)/$(PKG_NAME)
PDIR = $(PKG_BUILDDIR)
# 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.
# NimBLE is not optimized for building with all (extra) warnings enabled. So for
# now, we disable a number of selected compiler warnings when building NimBLE.
CFLAGS += -Wno-extra
ifeq (llvm,$(TOOLCHAIN))
# 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
CFLAGS += -Wno-sometimes-uninitialized
else
CFLAGS += -Wno-unused-but-set-variable
endif
.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