Skip to content

Commit d752828

Browse files
committed
L4_HAL/usb: Remove packed attribute for uint32_t (new GCC-8 warning)
1 parent 579c13f commit d752828

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_usb.c

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
/* Includes ------------------------------------------------------------------*/
5959
#include "stm32l4xx_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
/** @defgroup USB_LL USB Low Layer
6269
* @brief Low layer module for USB_FS and USB_OTG_FS drivers
6370
* @{

0 commit comments

Comments
 (0)