STMicroelectronics / stm32f4xx-hal-driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32F4 series.
BSD 3-Clause "New" or "Revised" License
119 stars 50 forks source link

Unused variable tickstart in HAL_QSPI_Command_IT in stm32f4xx_hal_qspi.c makes gcc unhappy #9

Closed sgauche closed 2 years ago

sgauche commented 2 years ago

Caution

The Issues are strictly limited for the reporting of problem encountered with the software provided in this project. For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post your report to the ST Community in the STM32 MCUs dedicated page.

Describe the set-up

Describe the bug (skip if none)

Unused variable tickstart makes gcc unhappy https://github.com/STMicroelectronics/stm32f4xx_hal_driver/blob/master/Src/stm32f4xx_hal_qspi.c#L873

st_driver/stm32f4xx_hal_driver/Src/stm32f4xx_hal_qspi.c: In function 'HAL_QSPI_Command_IT':
st_driver/stm32f4xx_hal_driver/Src/stm32f4xx_hal_qspi.c:873:12: error: unused variable 'tickstart' [-Werror=unused-variable]
  873 |   uint32_t tickstart = HAL_GetTick();
      |            ^~~~~~~~~
cc1: all warnings being treated as errors

How to reproduce the bug (skip if none)

Additional context

Screenshots

ASELSTM commented 2 years ago

Hi @sgauche,

Thank you for your contribution. The issue you raised out have been addressed and fixed internally.

This fix will be made available in the frame of a future release. So stay tuned and thank you once more for your contribution and for your patience.

With regards

ASELSTM commented 2 years ago

Hi @scapyst

This issue has been fixed in the frame of version v1.8.0 of the stm32f4xx_hal_driver published recently. Please allow me then to close this thread.

With regards,