Closed
Description
The following code in lfs.c causes a cppcheck warning
Identical inner 'if' condition is always true (outer condition is 'true' and inner condition is 'true').
// begin loop to commit compaction to blocks until a compact sticks
while (true) {
if (true) {
if (true)
appears in several places in littlefs. Is this done for debugging purposes or some other reasons? Is it possible to change the implementation to avoid the warning?
Metadata
Metadata
Assignees
Labels
No labels