Skip to content

Develop Warning Clean-up#10698

Closed
Xaositek wants to merge 3 commits into
developfrom
branch28_warningfixes
Closed

Develop Warning Clean-up#10698
Xaositek wants to merge 3 commits into
developfrom
branch28_warningfixes

Conversation

@Xaositek

Copy link
Copy Markdown
Contributor

Sometimes Claude finds fixes to current code

Strategy:

  1. Created a build for Cardputer which generated multiple warnings
  2. Exported log and iterated through Claude to see about fixing any quick wins
  3. Built for TEcho, Wio Tracker L1, and T114 - provided these logs additionally to Claude to verify any more fixes to warnings
  4. Reverified that logs are how much cleaner!

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

@Xaositek Xaositek self-assigned this Jun 11, 2026
@Xaositek Xaositek added bugfix Pull request that fixes bugs 2.8 cleanup Code cleanup or refactor ai-generated Possible AI-generated low-quality content labels Jun 11, 2026
@thebentern
thebentern requested a review from Copilot June 11, 2026 21:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/modules/CannedMessageModule.cpp
Comment thread src/modules/CannedMessageModule.cpp
Comment thread src/modules/CannedMessageModule.cpp
Comment thread src/modules/KeyVerificationModule.cpp Outdated
Comment thread src/modules/KeyVerificationModule.cpp
Comment thread src/nimble/NimbleBluetooth.cpp
Comment thread src/nimble/NimbleBluetooth.cpp
Comment thread src/nimble/NimbleBluetooth.cpp
@github-actions github-actions Bot added needs-review Needs human review enhancement New feature or request labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚡ Try this PR in the Web Flasher

Note

Building this pull request… the flash button, badges and supported-board
list will appear here automatically once CI finishes.

@NomDeTom

Copy link
Copy Markdown
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.

@Xaositek Xaositek closed this Jun 14, 2026
@Xaositek
Xaositek deleted the branch28_warningfixes branch June 14, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.8 ai-generated Possible AI-generated low-quality content bugfix Pull request that fixes bugs cleanup Code cleanup or refactor enhancement New feature or request needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants