Skip to content
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

fix compiler warnings - STM32F7 HAL Drivers: 'packed' attribute ignored #969

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Feb 23, 2024

fixes:

./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c: In function 'USB_WritePacket':
./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c:820:7: warning: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Wattributes]
  820 |       USBx_DFIFO(ch_ep_num) = *((__packed uint32_t *)src);
      |       ^
./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c: In function 'USB_ReadPacket':
./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c:846:5: warning: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Wattributes]
  846 |     *(__packed uint32_t *)dest = USBx_DFIFO(0);
      |     ^

@nerdCopter nerdCopter merged commit e65a7e0 into emuflight:master Feb 27, 2024
6 checks passed
@nerdCopter nerdCopter deleted the 20240223_fix_compile_warnings_packed_but_ignored branch February 27, 2024 18:43
@nerdCopter nerdCopter restored the 20240223_fix_compile_warnings_packed_but_ignored branch June 26, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant