STMicroelectronics / STM32CubeG0

STM32Cube MCU Full Package for the STM32G0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
164 stars 75 forks source link

stm32g0xx_ll_rtc.h compilation warning with GCC9 #11

Closed jeromecoutant closed 3 years ago

jeromecoutant commented 4 years ago

Hi

There is a compilation warning with GCC v9.2.1 at this line: https://github.com/STMicroelectronics/STM32CubeG0/blob/5114d9a57d8a450082fc8cafe4fe34d3610d0cef/Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rtc.h#L3077

[Warning] stm32g0xx_ll_rtc.h@3077,3: 'register' is not at beginning of declaration [-Wold-style-declaration]

Correction is to remove "const"

Regards,

Jerome

RKOUSTM commented 4 years ago

Hi @jeromecoutant,

Thank you for your contribution. The register keyword in the stm32g0xx_ll_rtc.h is removed. This update will be integrated in the future firmware package release (STM32G0 version v1.4.0).

Thank you again for your contribution.

With regards,

RKOUSTM commented 4 years ago

ST Internal Reference: 84398