summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/comp_opt.c2
-rw-r--r--lib/common/inode_stat.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c
index a0d4cf7..d605c0c 100644
--- a/lib/common/comp_opt.c
+++ b/lib/common/comp_opt.c
@@ -212,6 +212,8 @@ int compressor_cfg_init_options(sqfs_compressor_config_t *cfg,
case OPT_PB: cfg->opt.xz.pb = ival; break;
case OPT_WINDOW: cfg->opt.gzip.window_size = ival; break;
case OPT_DICT: cfg->opt.xz.dict_size = ival; break;
+ default:
+ break;
}
}
diff --git a/lib/common/inode_stat.c b/lib/common/inode_stat.c
index a73436b..fd0668a 100644
--- a/lib/common/inode_stat.c
+++ b/lib/common/inode_stat.c
@@ -66,6 +66,8 @@ int inode_stat(const sqfs_tree_node_t *node, struct stat *sb)
sb->st_size = node->inode->data.dir_ext.size;
sb->st_nlink = node->inode->data.dir_ext.nlink;
break;
+ default:
+ break;
}
sb->st_blocks = sb->st_size / sb->st_blksize;