-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fix warnings introduced with extra compiler flags requred by TIOBE TICS framework #17
Comments
Most of the issues are conversion warnings. |
There are a lot of conversions from int to uint16_t and uint32_t and the other way. |
Fixed -Wextra -Wshadow -Wcast-qual -Wwrite-strings |
for this bug to be closed, enable -Wconversion and get rid of all implicit casts, remove int wherever possible (except the public APIs). |
From TICS Quality Data Viewer => Compiler warnings Class A. |
The additional flags: -W -Wextra -Wconversion -Wshadow -Wcast-qual -Wwrite-strings
Theoretically we should get an A on compiler warnings if all is fixed.
Because portability is important: -Wcast-align should also be added for 16-bit devices
The text was updated successfully, but these errors were encountered: