Skip to content

Commit cf6fbcb

Browse files
authored
Merge pull request #2123 from hierophect/stm32-flashstub-fix
Fix stm32f412zg compile warning
2 parents 5e754f1 + 3156ee1 commit cf6fbcb

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

ports/stm32f4/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ endif
105105

106106
C_DEFS += -DMCU_PACKAGE=$(MCU_PACKAGE)
107107

108-
#TODO: Add ASM Flags? -Werror
109-
CFLAGS += $(INC) -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
108+
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
110109

111110
# Undo some warnings.
112111
# STM32 apparently also uses undefined preprocessor variables quite casually,

supervisor/stub/internal_flash.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ uint32_t supervisor_flash_get_block_count(void) {
4949
void supervisor_flash_flush(void) {
5050
}
5151

52-
static int32_t convert_block_to_flash_addr(uint32_t block) {
53-
return -1;
54-
}
55-
5652
mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) {
5753
return 0; // success
5854
}

0 commit comments

Comments
 (0)