You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ya...@apache.org on 2024/05/17 04:41:37 UTC
(nuttx-apps) branch master updated: toywasm: ignore compile warnings
This is an automated email from the ASF dual-hosted git repository.
yamamoto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 13cc85c05 toywasm: ignore compile warnings
13cc85c05 is described below
commit 13cc85c05547e1a007e817bd88b2159b9aed029f
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Thu May 16 21:05:35 2024 +0800
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 <yi...@xiaomi.com>
---
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