aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/comp
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 14:14:26 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 17:49:11 +0200
commitc578e5ca80370c9fc832f4a535bd8444971759e0 (patch)
treefb9296dd97bf5039391730716c4a6d2e808d2219 /lib/sqfs/comp
parenta32b5a9c793e4f4a4577837b73e783386842db02 (diff)
Add default cases for every switch block
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp')
-rw-r--r--lib/sqfs/comp/gzip.c2
-rw-r--r--lib/sqfs/comp/xz.c2
2 files changed, 4 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;