Address STM32 cppcheck warnings (#11314)

- Suppress GenericThreadModule warning when DEBUG_MUTE
- Suppress warning stemming from check_skip_packages
- Cast pointers to uint32_t before subtracting to avoid cppcheck warning
This commit is contained in:
Austin
2026-08-01 00:28:01 +00:00
committed by GitHub
parent 5bfad255e0
commit 85c1bd4836
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -17,6 +17,9 @@ int32_t GenericThreadModule::runOnce()
if (!enabled)
return disable();
// Sample first-run gate: the body is where custom one-shot init goes. With logging compiled out (e.g.
// DEBUG_MUTE) only the flag assignment is left, which cppcheck reads as a redundant condition.
// cppcheck-suppress duplicateConditionalAssign
if (firstTime) {
// do something the first time we run
firstTime = 0;