diff --git a/builder/macOS.py b/builder/macOS.py index c16bc3a5..5b044bf7 100644 --- a/builder/macOS.py +++ b/builder/macOS.py @@ -57,10 +57,16 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board): if board: unix_cmd.append(f'VARIANT={board}') + if lv_cflags: + lv_cflags += ' -Wno-missing-field-initializers -Wno-unused-function' + else: + lv_cflags = '-Wno-missing-field-initializers -Wno-unused-function' + unix_cmd.extend([ f'LV_CFLAGS="{lv_cflags}"', f'LV_PORT=unix', - f'USER_C_MODULES="{script_dir}/ext_mod"' + f'USER_C_MODULES="{script_dir}/ext_mod"', + 'CFLAGS="-Wno-missing-field-initializers -Wno-unused-function"' ]) unix_cmd.extend(extra_args) diff --git a/ext_mod/lcd_bus/micropython.mk b/ext_mod/lcd_bus/micropython.mk index 26185de4..98f1ad1a 100644 --- a/ext_mod/lcd_bus/micropython.mk +++ b/ext_mod/lcd_bus/micropython.mk @@ -10,7 +10,7 @@ CFLAGS_USERMOD += -I$(MOD_DIR) CFLAGS_USERMOD += -I$(MOD_DIR)/common_include CFLAGS_USERMOD += -I$(MOD_DIR)/sdl_bus CFLAGS_USERMOD += -Wno-missing-field-initializers -CFLAGS_USERMOD += -Wunused-function +CFLAGS_USERMOD += -Wno-unused-function SRC_USERMOD_C += $(MOD_DIR)/modlcd_bus.c SRC_USERMOD_C += $(MOD_DIR)/lcd_types.c diff --git a/ext_mod/lvgl/micropython.mk b/ext_mod/lvgl/micropython.mk index 3ade9e1c..17b80bd6 100644 --- a/ext_mod/lvgl/micropython.mk +++ b/ext_mod/lvgl/micropython.mk @@ -14,7 +14,7 @@ CFLAGS_USERMOD += -I$(LVGL_BINDING_DIR) CFLAGS_USERMOD += -I$(LVGL_DIR) CFLAGS_USERMOD += -I$(LVGL_BINDING_DIR)/include CFLAGS_USERMOD += -Wno-missing-field-initializers -CFLAGS_USERMOD += -Wunused-function +CFLAGS_USERMOD += -Wno-unused-function ALL_LVGL_SRC = $(shell find $(LVGL_DIR) -type f -name '*.h') $(LVGL_BINDING_DIR)/lib/lv_conf.h