summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-07-02 23:10:22 +1000
committerDamien George <damien@micropython.org>2021-07-02 23:10:22 +1000
commit076caf317e0a2ea689723d4295b5a6236a09d010 (patch)
tree60890172710d40a3926ce0deace3968d477224fa
parent0b3332c8e14db8a229070224955062f143b138cc (diff)
javascript/Makefile: Suppress compiler errors from array bounds.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/javascript/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/javascript/Makefile b/ports/javascript/Makefile
index 171f53b95..9cc45d3ef 100644
--- a/ports/javascript/Makefile
+++ b/ports/javascript/Makefile
@@ -59,4 +59,7 @@ test: $(BUILD)/micropython.js $(TOP)/tests/run-tests.py
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
cd $(TOP)/tests && MICROPY_MICROPYTHON=../ports/javascript/node_run.sh ./run-tests.py -j1
+# Disable errors for array-bounds warnings on "sp[-MP_OBJ_ITER_BUF_NSLOTS + 2]" access.
+$(BUILD)/py/vm.o: CFLAGS += -Wno-error=array-bounds
+
include $(TOP)/py/mkrules.mk