Skip to content

Commit 618fafd

Browse files
committed
codal_port/Makefile: Suppress dangling ptr warning from stackctrl.c.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 9e98329 commit 618fafd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codal_port/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ $(MBIT_VER_FILE): FORCE
131131
$(PYTHON) $(TOP)/py/makeversionhdr.py $(MBIT_VER_FILE).pre
132132
$(CAT) $(MBIT_VER_FILE).pre | $(SED) s/MICROPY_/MICROBIT_/ > $(MBIT_VER_FILE)
133133

134+
# Suppress warnings bulding stackctrl.c (fixed post v1.20.0).
135+
$(BUILD)/py/stackctrl.o: CWARN += -Wno-dangling-pointer
136+
134137
# Suppress warnings from SAM library.
135138
$(BUILD)/$(abspath $(LOCAL_LIB_DIR))/sam/sam.o: CWARN += -Wno-array-bounds
136139

0 commit comments

Comments
 (0)