From 8225713449d3df7b8945e14e6c4728a3c9a24dd4 Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Tue, 10 Oct 2023 16:56:35 +0200 Subject: [PATCH] libmbedtls: fix unrecognized compiler option Prior to this patch when compiling with clang there an error: error: unknown warning option '-Wno-unused-functions'; did you mean '-Wno-unused-function'? [-Werror,-Wunknown-warning-option] Fix this by using -Wno-unused-function instead. Fixes: dfafe507bbef ("Import mbedtls-3.4.0") Signed-off-by: Jens Wiklander Reviewed-by: Jerome Forissier --- lib/libmbedtls/sub.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libmbedtls/sub.mk b/lib/libmbedtls/sub.mk index 93d6df63e93..05951c0abd0 100644 --- a/lib/libmbedtls/sub.mk +++ b/lib/libmbedtls/sub.mk @@ -134,7 +134,7 @@ srcs-$(sm-$(ta-target)) += $(addprefix mbedtls/library/, $(SRCS_TLS)) cflags-lib-y += -Wno-redundant-decls cflags-lib-y += -Wno-switch-default cflags-lib-y += -Wno-declaration-after-statement -cflags-lib-y += -Wno-unused-functions +cflags-lib-y += -Wno-unused-function ifeq ($(CFG_CRYPTOLIB_NAME_mbedtls),y) subdirs-$(sm-core) += core