Skip to content

Commit 539a10e

Browse files
committed
Allow unused functions in native module builds
1 parent 4778835 commit 539a10e

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

src/emlearn_fft/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ $(DIST_FILE): $(MOD).mpy $(DIST_DIR)
3333
include $(MPY_DIR)/py/dynruntime.mk
3434

3535

36-
CFLAGS += -I$(EMLEARN_DIR)
36+
CFLAGS += -I$(EMLEARN_DIR) -Wno-unused-function
3737

3838
dist: $(DIST_FILE)

src/emlearn_iir/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ $(DIST_FILE): $(MOD).mpy $(DIST_DIR)
3232
# Include to get the rules for compiling and linking the module
3333
include $(MPY_DIR)/py/dynruntime.mk
3434

35-
CFLAGS += -I$(EMLEARN_DIR)
35+
CFLAGS += -I$(EMLEARN_DIR) -Wno-unused-function
3636

3737
dist: $(DIST_FILE)

src/emlearn_iir_q15/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ LIBGCC_FILENAME = $(shell $(CROSS)gcc $(CFLAGS) -print-libgcc-file-name)
4141
$(info $(LIBGCC_FILENAME))
4242

4343
CFLAGS += -I$(CMSIS_DSP_DIR)/Include
44+
CFLAGS += -Wno-unused-function
4445

4546
$(CMSIS_DSP_DIR)/iir_q15.patched:
4647
cd $(CMSIS_DSP_DIR) && git apply -v ../df1_q15_disable_dsp.patch

src/emlearn_neighbors/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ $(DIST_DIR):
3333
$(DIST_FILE): $(MOD).mpy $(DIST_DIR)
3434
cp $< $@
3535

36-
CFLAGS += -I$(EMLEARN_DIR)
36+
CFLAGS += -I$(EMLEARN_DIR) -Wno-unused-function
3737

3838
dist: $(DIST_FILE)

src/emlearn_trees/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ $(DIST_FILE): $(MOD).mpy $(DIST_DIR)
3232
# Include to get the rules for compiling and linking the module
3333
include $(MPY_DIR)/py/dynruntime.mk
3434

35-
CFLAGS += -I$(EMLEARN_DIR) -DDYNAMIC_RUNTIME=1
35+
CFLAGS += -I$(EMLEARN_DIR) -Wno-unused-function
3636

3737
dist: $(DIST_FILE)

0 commit comments

Comments
 (0)