summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-07-30 15:35:05 +1000
committerDamien George <damien.p.george@gmail.com>2018-07-30 15:35:05 +1000
commitf6f6452b6f336559e4b44c7a49260bd9c2ba684b (patch)
tree1b5de8b49bd9f917a84b382b31b80f6b49c0ebef
parent90fc7c5cfa025d795ace16b15c159b859d214d10 (diff)
stm32/Makefile: Use -Wno-attributes for ll_usb.c HAL source file.
A recent version of arm-none-eabi-gcc (8.2.0) will warn about unused packed attributes in USB_WritePacket and USB_ReadPacket. This patch suppresses such warnings for this file only.
-rw-r--r--ports/stm32/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 24e12d669..bb9a83d2c 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -303,6 +303,7 @@ SRC_HAL = $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
)
ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f4 f7 h7 l4))
+$(BUILD)/$(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_ll_usb.o: CFLAGS += -Wno-attributes
SRC_HAL += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
hal_sd.c \
ll_sdmmc.c \