From 4ac682086076f1ca5d679263c13213d5570eddcd Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 4 Nov 2021 15:29:21 +0100 Subject: [PATCH] pkg/wolfssl: add -Wno-cast-align --- pkg/wolfssl/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/wolfssl/Makefile b/pkg/wolfssl/Makefile index fd2d8d2e28..3e4a326307 100644 --- a/pkg/wolfssl/Makefile +++ b/pkg/wolfssl/Makefile @@ -11,6 +11,12 @@ include $(RIOTBASE)/pkg/pkg.mk # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90710#c1 CFLAGS += -Wno-maybe-uninitialized +# wolfcrypt uses uint8_t for block buffers, on which fast +# 32 bit operations are performed. From a quick peek at the +# code it looks like the buffers are correctly aligned, so +# this is a false positive. +CFLAGS += -Wno-cast-align + .PHONY: wolfcrypt% all: $(filter wolfcrypt wolfcrypt-test wolfcrypt-benchmark,$(USEMODULE))