aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2017-08-14 20:08:33 +0300
committerLasse Collin <lasse.collin@tukaani.org>2017-08-14 20:08:33 +0300
commit94e3f986aa4e14b4ff01ac24857f499630d6d180 (patch)
tree6d847641c02183745536e68c20704aeda72b5b0c /src/xz
parentDocs: Fix a typo in a comment in doc/examples/02_decompress.c. (diff)
downloadxz-94e3f986aa4e14b4ff01ac24857f499630d6d180.tar.xz
Fix or hide warnings from GCC 7's -Wimplicit-fallthrough.
Diffstat (limited to 'src/xz')
-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 bf462957..ef93314c 100644
--- a/src/xz/list.c
+++ b/src/xz/list.c
@@ -318,6 +318,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)