Skip to content

Remove packed attribute for uint32_t (new GCC-8 warning) #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
STM32F7: Remove packed attribute for uint32_t (new GCC-8 warning)
  • Loading branch information
prusnak committed Jan 23, 2019
commit 6fa816830c1d1f03ae550720c150f4129461f100
7 changes: 7 additions & 0 deletions STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_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__ */

/** @addtogroup STM32F7xx_LL_USB_DRIVER
* @{
*/
Expand Down