Develop Warning Clean-up#10698
Closed
Xaositek wants to merge 3 commits into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Cleans up build warnings across several targets by updating BLE connection parameter APIs, tightening conditional compilation, and clarifying intentional control flow in switches.
Changes:
- Replaced deprecated/legacy NimBLE connection parameter updates with
requestConnParams(). - Reduced compiler warnings via explicit
[[fallthrough]]and(void)casts for conditionally-used variables. - Simplified string emptiness checks to avoid “always true” conditions and related warnings.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/nimble/NimbleBluetooth.cpp | Updates BLE connection parameter calls to requestConnParams() to reduce warnings/deprecations. |
| src/modules/StatusLEDModule.cpp | Suppresses unused-variable warnings when ledState is only used under platform #ifdefs. |
| src/modules/KeyVerificationModule.cpp | Refactors banner callback definition to avoid preprocessor macro argument issues. |
| src/modules/CannedMessageModule.cpp | Moves EINK-only variables under #ifdef and changes node-name checks to reduce warnings. |
| src/mesh/aes-ccm.cpp | Adjusts volatile casts in constant-time compare to reduce cast-related warnings. |
| src/graphics/draw/UIRenderer.cpp | Replaces pointer-style checks with empty-string checks for short_name. |
| src/gps/GPS.cpp | Adds explicit [[fallthrough]] to silence implicit fallthrough warnings. |
| src/detect/ScanI2CTwoWire.cpp | Adds explicit [[fallthrough]] to silence implicit fallthrough warnings. |
Contributor
⚡ Try this PR in the Web FlasherNote Building this pull request… the flash button, badges and supported-board |
Collaborator
|
I admire the sentiment, but I suspect this is just going to lead to more arguments with clod rather than fewer with the compiler. |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes Claude finds fixes to current code
Strategy:
All logs used are attached:
build_cardputer_finalbuild.log
build_cardputer_initialbuild.txt
build_t114.log
build_techo.log
build_wiotrackerl1.log
build_wismeshtag.log