xz/src/xz
Sam James 863f13d282 xz: signals: suppress -Wsign-conversion on macOS
On macOS, we get:
```
signals.c: In function 'signals_init':
signals.c:76:17: error: conversion to 'sigset_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
   76 |                 sigaddset(&hooked_signals, sigs[i]);
      |                 ^~~~~~~~~
signals.c:81:17: error: conversion to 'sigset_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
   81 |                 sigaddset(&hooked_signals, message_progress_sigs[i]);
      |                 ^~~~~~~~~
signals.c:86:9: error: conversion to 'sigset_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
   86 |         sigaddset(&hooked_signals, SIGTSTP);
      |         ^~~~~~~~~
```

We use `int` for `hooked_signals` but we can't just cast to whatever
`sigset_t` is because `sigset_t` is an opaque type. It's an unsigned int
on macOS. On macOS, `sigaddset` is implemented as a macro.

Just suppress -Wsign-conversion for `signals_init` for macOS given
there's no real nice way of fixing this.
2024-04-14 17:26:43 +03:00
..
Makefile.am xz: Move sandboxing code to sandbox.c and improve Landlock sandbox. 2024-02-17 23:07:35 +02:00
args.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
args.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
coder.c xz: Add comments. 2024-02-28 18:26:25 +02:00
coder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
file_io.c xz: Move sandboxing code to sandbox.c and improve Landlock sandbox. 2024-02-17 23:07:35 +02:00
file_io.h xz: Move sandboxing code to sandbox.c and improve Landlock sandbox. 2024-02-17 23:07:35 +02:00
hardware.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
hardware.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
list.c xz: Mention lzmainfo if trying to use 'lzma --list'. 2024-02-14 18:31:16 +02:00
list.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
main.c xz: Use stricter pledge(2) and Landlock sandbox. 2024-02-17 23:07:35 +02:00
main.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
message.c xz: Delete old commented-out code. 2024-02-17 23:07:35 +02:00
message.h xz: Fix message_init() description. 2024-02-17 23:07:35 +02:00
mytime.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
mytime.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
options.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
options.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
private.h xz: Move sandboxing code to sandbox.c and improve Landlock sandbox. 2024-02-17 23:07:35 +02:00
sandbox.c Build: Fix Linux Landlock feature test in Autotools and CMake builds. 2024-02-26 23:27:44 +08:00
sandbox.h Build: Fix Linux Landlock feature test in Autotools and CMake builds. 2024-02-26 23:27:44 +08:00
signals.c xz: signals: suppress -Wsign-conversion on macOS 2024-04-14 17:26:43 +03:00
signals.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
suffix.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
suffix.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
util.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
util.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
xz.1 xz man page: Use .ft CR instead of CW to silence warnings from groff. 2024-04-09 18:22:27 +03:00
xz_w32res.rc Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00