aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-02-21 16:10:44 +0200
committerLasse Collin <lasse.collin@tukaani.org>2020-03-11 12:05:57 +0200
commitc2cc64d78c098834231f9cfd7d852c9cd8950d74 (patch)
treeef5c198b63425a539ce35ca097379c59ebea7dc6
parentxz: Avoid unneeded access of a volatile variable. (diff)
downloadxz-c2cc64d78c098834231f9cfd7d852c9cd8950d74.tar.xz
xz: Silence a warning when sig_atomic_t is long int.
It can be true at least on z/OS.
-rw-r--r--src/xz/signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/signals.c b/src/xz/signals.c
index 7daeddca..7aef463c 100644
--- a/src/xz/signals.c
+++ b/src/xz/signals.c
@@ -152,7 +152,7 @@ signals_unblock(void)
extern void
signals_exit(void)
{
- const int sig = exit_signal;
+ const int sig = (int)exit_signal;
if (sig != 0) {
#if defined(TUKLIB_DOSLIKE) || defined(__VMS)