2025-01-16 06:52 AM
In HAL_DACEx_ClearConfigAutonomousMode(), a test is surrounded by parentheses that are clearly unnecessary in code generated by STM32CubeMx.
This is not very important... but it generates warnings that I check at each compilation...
2025-01-16 06:57 AM
Please see the community guidelines for how to properly post source code - not as screenshots:
How to write your question to maximize your chances to find a solution
@JVERN.18 wrote:it generates warnings .
What warnings, exactly?
And what build tools & version are you using?
2025-01-16 07:16 AM
Sorry for the scrrenshots, I'll be more careful next time...
The compiler is LLVM/Clang and the warning is "equality comparison whith extraneous parentheses [-Wparentheses-equality]"
This is not a very important warning, and I see that GNU does not see a problem... but it would still be bette if the extra parentheses were not there...