Skip to content

Commit 7dc9eb9

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

STM32F7xx_HAL_Driver/Src/stm32f7xx_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 "stm32f7xx_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 STM32F7xx_LL_USB_DRIVER
6269
* @{
6370
*/

0 commit comments

Comments
 (0)