Skip to content

Commit a70b4ef

Browse files
prusnakdpgeorge
authored andcommitted
F4_HAL/usb: Remove packed attribute for uint32_t (new GCC-8 warning)
1 parent 15659aa commit a70b4ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
/* Includes ------------------------------------------------------------------*/
5959
#include "stm32f4xx_hal.h"
6060

61+
#if defined ( __GNUC__ )
62+
/* In this file __packed is used to signify an unaligned pointer,
63+
which GCC doesn't support, so disable it. */
64+
#undef __packed
65+
#define __packed
66+
#endif /* __GNUC__ */
67+
6168
/** @addtogroup STM32F4xx_LL_USB_DRIVER
6269
* @{
6370
*/

0 commit comments

Comments
 (0)