-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32 compilation warning issues #6599
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
Conversation
I have compiler messages covering this set of changes https://github.com/pauluap/mbed-os/tree/compiler_warning_declaration_not_provided
https://github.com/pauluap/mbed-os/commits/compiler_warning_inline_keyword_misuse
https://github.com/pauluap/mbed-os/commits/compiler_warning_strict_antialiasing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I currently think that this function needs further work to handle other potential negative number issues. I've generated a pull request for this particular set of changes - #6609
00953b2
to
71d7d24
Compare
PCD warnings are now followed by #6609 |
@pauluap Please rereview |
Ok, I checked out the PCD comments and I now agree with the ST driver team that my more extensive changes aren't required. I'll clean up #6609 to get things back in line with the ilen variant. |
@@ -454,6 +454,15 @@ HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc) | |||
* @{ | |||
*/ | |||
|
|||
#if __GNUC__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this solving for GCC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning messages that this change clears is shown in the commit message. The warning only appears at the -O3
optimization level
/morph build |
Build : SUCCESSBuild number : 1743 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1377 |
Test : SUCCESSBuild number : 1546 |
Description
This PR follow @pauluap work in #6262
and correct ("only") compilation warning in the ST driver files.
Internal tickets has been raised in ST side to align code.
Thx
Pull request type
[x] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change