Closed lsuchocki closed 2 years ago
Hi @lsuchocki,
Thank you for your reports.
According to the Development toolchains and compilers
section of this release note, the STM32CubeIDE v1.5.1 - gcc version 7_2018_q2 and the STM32 System Workbench (SW4STM32) V2.7 toolchain are recommended for the STM32CubeL4 v1.17.0.
Your report regarding the C standard requirements for the RCC driver, will be forwarded to our development team. We will get back to you as soon as we have more details.
Thank you again for your reports.
With regards,
Hi @lsuchocki,
First we would like to thank you for your contribution.
The issue you pointed out is confirmed. An internal tracker has been logged and a fix will be implemented and made available in the frame of a future release to enhance the readability of the code. Also, this update is required by the gcc compiler.
Thank you once again for your contribution.
With regards,
ST Internal Reference: 110117
Hi @lsuchocki,
I hope you are fine. The issue you reported has been fixed in the frame of version v1.17.1 of the STM32CubeL4 published recently on GitHub. Thank you again for having reported.
With regards,
Describe the set-up
Describe the bug When compiling with "-Wpedantic", throws the following warning (error with -Werror):
How To Reproduce Compile with additional compiler flags be adding "CFLAGS += -Wpedantic -Werror" to Makefile
Additional context From the C standard, 6.10.3 Macro replacement: 11 [...] If there are sequences of preprocessing tokens within the list of arguments that would otherwise act as preprocessing directives, the behavior is undefined.
I believe the following patch could fix the issue (note line numbers are specific to v1.13.0):