1
0
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:
Marian Buschsieweke 2021-11-04 15:45:33 +01:00
parent 4ac6820860
commit 79103d3156
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 1 additions and 1 deletions

View File

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