mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Silence clang static analyzer warnings
This commit is contained in:
parent
0f0873cf2b
commit
5f724b047b
9 changed files with 13 additions and 9 deletions
|
|
@ -2026,6 +2026,8 @@ int fssnapshot_mount(const char* path, struct fssnapshot_struct* fss)
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
assert(fss != 0); /* silence the clang static analyzer (it's never called with a NULL fss) */
|
||||
|
||||
if (sfs.f_type == BTRFS_SUPER_MAGIC) {
|
||||
/* btrfs reserved inode 256 for subvolume roots */
|
||||
return fssnapshot_inode(path, BTRFS_SUPER_MAGIC, 256, fss);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue