255 fix issues exposed by codechecker - #256
Conversation
|
Build output available: |
CodeChecker static analysis (advisory)Note This report is informational. It does not block merging and does not change code. At a glance
Findings on changed linesNo non-style findings were reported on lines changed by this PR. Analyzer coverage
Complete-codebase summarySeverity: 5 high, 76 low Complete-codebase findingsEach finding includes source context. The Show detailed findings with source context (81 of 81)HIGH —
|
|
Build output available: |
Include the standard and project headers that declare functions used by each translation unit. This lets Clang analyze the files independently instead of relying on transitive includes.
Document the intended loss of precision when storing sensor and parsed values in 32-bit fields. Match variadic format arguments to the unsigned integer type expected by %X while preserving the existing lower-32-bit output.
Call std::fabs for the battery-capacity difference so overload resolution is explicit and the comparison remains in floating-point arithmetic.
The connection callback returns void, so stop processing with a plain return after a parameter-update failure instead of attempting to return the error value.
2a83a4d to
fa9f7c5
Compare
|
Build output available: |
Initialize the application LED state and BMP388 FIFO sample data before they are passed to downstream code. This prevents uninitialized fields from being observed on valid error and partial-frame paths.
Only adjust and consume the FIFO length after reading it successfully. This avoids updating FIFO state or issuing a read with an undefined length after an I/O failure.
Return before selecting the Earable button when the callback does not contain its pin. This prevents dereferencing an uninitialized button pointer for an unexpected interrupt mask.
|
Build output available: |
e509194 to
5c96030
Compare
|
Build output available: |
WIP, do not merge