aboutsummaryrefslogtreecommitdiff
path: root/src/xz/coder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz/coder.c')
-rw-r--r--src/xz/coder.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c
index 947b4721..a94bdb83 100644
--- a/src/xz/coder.c
+++ b/src/xz/coder.c
@@ -450,7 +450,15 @@ coder_init(file_pair *pair)
break;
}
} else {
- uint32_t flags = LZMA_TELL_UNSUPPORTED_CHECK;
+ uint32_t flags = 0;
+
+ // It seems silly to warn about unsupported check if the
+ // check won't be verified anyway due to --ignore-check.
+ if (opt_ignore_check)
+ flags |= LZMA_IGNORE_CHECK;
+ else
+ flags |= LZMA_TELL_UNSUPPORTED_CHECK;
+
if (!opt_single_stream)
flags |= LZMA_CONCATENATED;