Skip to content

Commit

Permalink
libmbedtls: fix unrecognized compiler option
Browse files Browse the repository at this point in the history
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: dfafe50 ("Import mbedtls-3.4.0")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Oct 10, 2023
1 parent b94ff2d commit 32afcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libmbedtls/sub.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32afcc7

Please sign in to comment.