littlefs icon indicating copy to clipboard operation
littlefs copied to clipboard

refactor: value stored to 'diff' is never read

Open Ryan-CW-Code opened this issue 6 months ago • 3 comments

Ryan-CW-Code avatar May 27 '25 12:05 Ryan-CW-Code

Tests passed ✓, Code: 17104 B (+0.0%), Stack: 1448 B (+0.0%), Structs: 812 B (+0.0%)
Code Stack Structs Coverage
Default 17104 B (+0.0%) 1448 B (+0.0%) 812 B (+0.0%) Lines 2434/2594 lines (+0.0%)
Readonly 6230 B (+0.0%) 448 B (+0.0%) 812 B (+0.0%) Branches 1283/1616 branches (+0.0%)
Threadsafe 17956 B (+0.0%) 1448 B (+0.0%) 820 B (+0.0%) Benchmarks
Multiversion 17176 B (+0.0%) 1448 B (+0.0%) 816 B (+0.0%) Readed 29369693876 B (+0.0%)
Migrate 18768 B (+0.0%) 1752 B (+0.0%) 816 B (+0.0%) Proged 1482874766 B (+0.0%)
Error-asserts 17916 B (+0.0%) 1440 B (+0.0%) 812 B (+0.0%) Erased 1568888832 B (+0.0%)

geky-bot avatar May 27 '25 12:05 geky-bot

Interesting, I wonder why this wasn't caught with GCC -pedantic -Wall -Wextra.

Will bring this in on the next patch release, thanks for the PR!

geky avatar Jun 01 '25 16:06 geky

I also used clang-tidy and cppcheck

Ryan-CW-Code avatar Jun 03 '25 01:06 Ryan-CW-Code