From 6587032ae0f56587329d272f7304e95d24fe9b85 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 23 Jan 2019 18:47:36 +0100 Subject: [PATCH] F4_HAL/usb: Remove packed attribute for uint32_t (new GCC-8 warning) --- STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c b/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c index bc6cc1b..33dbe91 100644 --- a/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c +++ b/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c @@ -58,6 +58,13 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" +#if defined ( __GNUC__ ) +/* In this file __packed is used to signify an unaligned pointer, + which GCC doesn't support, so disable it. */ +#undef __packed +#define __packed +#endif /* __GNUC__ */ + /** @addtogroup STM32F4xx_LL_USB_DRIVER * @{ */