From 13cc85c05547e1a007e817bd88b2159b9aed029f Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Thu, 16 May 2024 21:05:35 +0800 Subject: [PATCH] toywasm: ignore compile warnings Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it Signed-off-by: yinshengkai --- interpreters/toywasm/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interpreters/toywasm/Makefile b/interpreters/toywasm/Makefile index 69708a289..b21e23711 100644 --- a/interpreters/toywasm/Makefile +++ b/interpreters/toywasm/Makefile @@ -131,6 +131,11 @@ CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/lib CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libwasi CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libdyld +# Keep the compilation parameters consistent with toywasm mainline +# https://github.com/yamt/toywasm/blob/master/cmake/ToywasmConfig.cmake#L298-L302 + +CFLAGS += -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-variable -Wno-return-type + TOYWASM_VERSION = 76b9d7088ab321e329b6f958360fb05cebd3df9f TOYWASM_UNPACK = toywasm TOYWASM_TARBALL = $(TOYWASM_VERSION).zip