mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/nimble: add -Wno-cast-align
Also brutally silence -Wcast-align warnings in OS_MBUF_PKTHDR() and OS_MBUF_PKTHDR_TO_MBUF(), as those are used by nimble users. It might make sense to check if the silenced / disabled warnings do indeed point out unaligned memory accesses.
This commit is contained in:
parent
4ac6820860
commit
79103d3156
@ -10,7 +10,7 @@ PDIR = $(PKG_SOURCE_DIR)
|
||||
|
||||
# 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
|
||||
CFLAGS += -Wno-extra -Wno-cast-align
|
||||
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
|
||||
|
BIN
pkg/nimble/patches/0001-porting-nimble-silence-Wcast-align.patch
Normal file
BIN
pkg/nimble/patches/0001-porting-nimble-silence-Wcast-align.patch
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user