summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/comp/gzip.c2
-rw-r--r--lib/sqfs/comp/xz.c2
-rw-r--r--lib/sqfs/dir_writer.c2
-rw-r--r--lib/sqfs/read_tree.c2
-rw-r--r--lib/sqfs/write_inode.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqfs/comp/gzip.c b/lib/sqfs/comp/gzip.c
index 91cd87e..39d4227 100644
--- a/lib/sqfs/comp/gzip.c
+++ b/lib/sqfs/comp/gzip.c
@@ -117,6 +117,8 @@ static int flag_to_zlib_strategy(int flag)
return Z_RLE;
case SQFS_COMP_FLAG_GZIP_FIXED:
return Z_FIXED;
+ default:
+ break;
}
return 0;
diff --git a/lib/sqfs/comp/xz.c b/lib/sqfs/comp/xz.c
index 7d7991d..3fb27b2 100644
--- a/lib/sqfs/comp/xz.c
+++ b/lib/sqfs/comp/xz.c
@@ -144,6 +144,8 @@ static lzma_vli flag_to_vli(int flag)
return LZMA_FILTER_ARMTHUMB;
case SQFS_COMP_FLAG_XZ_SPARC:
return LZMA_FILTER_SPARC;
+ default:
+ break;
}
return LZMA_VLI_UNKNOWN;
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c
index e425b41..908bb01 100644
--- a/lib/sqfs/dir_writer.c
+++ b/lib/sqfs/dir_writer.c
@@ -64,6 +64,8 @@ static int get_type(sqfs_u16 mode)
case S_IFCHR: return SQFS_INODE_CDEV;
case S_IFDIR: return SQFS_INODE_DIR;
case S_IFREG: return SQFS_INODE_FILE;
+ default:
+ break;
}
return SQFS_ERROR_UNSUPPORTED;
diff --git a/lib/sqfs/read_tree.c b/lib/sqfs/read_tree.c
index 56b4f0c..802446a 100644
--- a/lib/sqfs/read_tree.c
+++ b/lib/sqfs/read_tree.c
@@ -37,6 +37,8 @@ static int should_skip(int type, unsigned int flags)
case SQFS_INODE_FIFO:
case SQFS_INODE_EXT_FIFO:
return (flags & SQFS_TREE_NO_FIFO);
+ default:
+ break;
}
return 0;
diff --git a/lib/sqfs/write_inode.c b/lib/sqfs/write_inode.c
index 8d8fa7a..118b713 100644
--- a/lib/sqfs/write_inode.c
+++ b/lib/sqfs/write_inode.c
@@ -212,6 +212,8 @@ int sqfs_meta_writer_write_inode(sqfs_meta_writer_t *ir,
};
return sqfs_meta_writer_append(ir, &ipc, sizeof(ipc));
}
+ default:
+ break;
}
return SQFS_ERROR_UNSUPPORTED;