Terminate all switch cases with at least LFS_UNREACHABLE()

Just to be extra safe.

No code changes.
This commit is contained in:
Christopher Haster
2025-04-25 15:03:25 -05:00
parent 5b4fd72226
commit 0fe89f8cd0
+2
View File
@@ -9530,6 +9530,7 @@ static int lfsr_mtree_traverse_(lfs_t *lfs, lfsr_traversal_t *t,
LFS_ERROR("Weird mroot entry? 0x%"PRIx32, tag); LFS_ERROR("Weird mroot entry? 0x%"PRIx32, tag);
return LFS_ERR_CORRUPT; return LFS_ERR_CORRUPT;
} }
LFS_UNREACHABLE();
// iterate over mdirs in the mtree // iterate over mdirs in the mtree
case LFSR_TSTATE_MDIRS:; case LFSR_TSTATE_MDIRS:;
@@ -9617,6 +9618,7 @@ static int lfsr_mtree_traverse_(lfs_t *lfs, lfsr_traversal_t *t,
LFSR_TSTATE_OMDIRS); LFSR_TSTATE_OMDIRS);
continue; continue;
} }
LFS_UNREACHABLE();
// scan for blocks/btrees in our opened file list // scan for blocks/btrees in our opened file list
case LFSR_TSTATE_OMDIRS:; case LFSR_TSTATE_OMDIRS:;