-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Address CI build warnings #2742
Conversation
- Run test with lower log verbosity - Fix control rendering: Should use their own bounds for positioning, set button font - Fix const parameters - use unique_ptr for getGlyph calls - Use `std::make_unique` and assignment instead of reset() - Avoid printf - Demote `reinterpret_cast` to `static_cast` where appropriate - Apply coding style to samples - Fix compiler warnings
Check introduced with linker (LD, binutils 2.39) from IDF 5.2 onwards This specifically refers to IRAM, which we do actually need to be writeable and executable
5733d58
to
bcc9a59
Compare
@slaff codeql still running on ubuntu-20.04, actions for this and coverity scan, release and spelling-check could be updated. Shall we do that here or in a separate PR? NB. Also readthedocs can be updated. |
@mikee47 I would prefer separate PRs. Thank you for your hard work. |
@mikee47 are you ready with this PR? |
@slaff Yes, all done thanks. |
This PR addresses warnings which have crept into the CI build logs.
Worst case is probably esp32 with IDF 5.2 (GCC 13.2) producing 350 warnings, now 65.
General fixes
uint8
which should beuint8_t
.Fix compiler warnings/errors
Replaced a few more instances of printf with streaming operators, simpler and type-safe.
Fixed
Overloaded virtual
warnings.Note: See remaining warnings for NimBLE (submodule) which need attention.
Graphics library fixes
std::make_unique
and assignment instead of reset()reinterpret_cast
tostatic_cast
where appropriateDisable esp32 warning about RWX segments
Check introduced with linker (LD, binutils 2.39) from IDF 5.2 onwards
This specifically refers to IRAM, which we do actually need to be writeable and executable.
(IDF link code disables this warning also.)