Skip to content

Commit

Permalink
L4_HAL/usb: Remove packed attribute for uint32_t (new GCC-8 warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Jan 24, 2019
1 parent 579c13f commit d752828
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_usb.c
Expand Up @@ -58,6 +58,13 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32l4xx_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__ */

/** @defgroup USB_LL USB Low Layer
* @brief Low layer module for USB_FS and USB_OTG_FS drivers
* @{
Expand Down

0 comments on commit d752828

Please sign in to comment.