diff --git a/pkg/nimble/Makefile b/pkg/nimble/Makefile index a735e5436b..30ac9231d1 100644 --- a/pkg/nimble/Makefile +++ b/pkg/nimble/Makefile @@ -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 diff --git a/pkg/nimble/patches/0001-porting-nimble-silence-Wcast-align.patch b/pkg/nimble/patches/0001-porting-nimble-silence-Wcast-align.patch new file mode 100644 index 0000000000..6cae3621a2 Binary files /dev/null and b/pkg/nimble/patches/0001-porting-nimble-silence-Wcast-align.patch differ