summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xports/stm32f4/Makefile3
-rw-r--r--supervisor/stub/internal_flash.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/ports/stm32f4/Makefile b/ports/stm32f4/Makefile
index 9547802d7..f3558588b 100755
--- a/ports/stm32f4/Makefile
+++ b/ports/stm32f4/Makefile
@@ -105,8 +105,7 @@ endif
C_DEFS += -DMCU_PACKAGE=$(MCU_PACKAGE)
-#TODO: Add ASM Flags? -Werror
-CFLAGS += $(INC) -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
+CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
# Undo some warnings.
# STM32 apparently also uses undefined preprocessor variables quite casually,
diff --git a/supervisor/stub/internal_flash.c b/supervisor/stub/internal_flash.c
index eb1f4a106..5db6b5bc0 100644
--- a/supervisor/stub/internal_flash.c
+++ b/supervisor/stub/internal_flash.c
@@ -49,10 +49,6 @@ uint32_t supervisor_flash_get_block_count(void) {
void supervisor_flash_flush(void) {
}
-static int32_t convert_block_to_flash_addr(uint32_t block) {
- return -1;
-}
-
mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) {
return 0; // success
}