aboutsummaryrefslogtreecommitdiff
path: root/src/xz/list.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2017-08-14 20:08:33 +0300
committerLasse Collin <lasse.collin@tukaani.org>2018-03-28 19:16:06 +0300
commit06eebd4543196ded36fa9b8b9544195b38b24ef2 (patch)
tree33694d80f6eb760b0523420106e0e33af5dc1bb6 /src/xz/list.c
parentDocs: Fix a typo in a comment in doc/examples/02_decompress.c. (diff)
downloadxz-06eebd4543196ded36fa9b8b9544195b38b24ef2.tar.xz
Fix or hide warnings from GCC 7's -Wimplicit-fallthrough.
Diffstat (limited to '')
-rw-r--r--src/xz/list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xz/list.c b/src/xz/list.c
index 4dd1f6f8..18fdca21 100644
--- a/src/xz/list.c
+++ b/src/xz/list.c
@@ -484,6 +484,8 @@ parse_block_header(file_pair *pair, const lzma_index_iter *iter,
// If the above fails, the file is corrupt so
// LZMA_DATA_ERROR is a good error code.
+ // Fall through
+
case LZMA_DATA_ERROR:
// Free the memory allocated by lzma_block_header_decode().
for (size_t i = 0; filters[i].id != LZMA_VLI_UNKNOWN; ++i)