Skip to content

Commit cfda9ea

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usb.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
/* Includes ------------------------------------------------------------------*/
4242
#include "stm32h7xx_hal.h"
4343

44+
#if defined ( __GNUC__ )
45+
/* In this file __packed is used to signify an unaligned pointer,
46+
which GCC doesn't support, so disable it. */
47+
#undef __packed
48+
#define __packed
49+
#endif /* __GNUC__ */
50+
4451
/** @addtogroup STM32H7xx_LL_USB_DRIVER
4552
* @{
4653
*/

0 commit comments

Comments
 (0)