From 84347f94dae1be5ac7f55162eae2f582122e1b21 Mon Sep 17 00:00:00 2001 From: skye Date: Tue, 10 Mar 2026 12:20:05 -0400 Subject: [PATCH] libexec/kill-user: suppress `syscall` deprecation warning on darwin The existing function is used with good reason as explained by its comment. This suppresses the warning it creates. Change-Id: I58b0de3f5854266fa77b6a06b7821a636a6a6964 --- lix/libexec/kill-user.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lix/libexec/kill-user.cc b/lix/libexec/kill-user.cc index 0fdc7e5c2..b4ba43a21 100644 --- a/lix/libexec/kill-user.cc +++ b/lix/libexec/kill-user.cc @@ -36,9 +36,12 @@ int helperMain(const char * name, std::span args) noexcept other things, determines if kill(-1, signo) affects the calling process. In the OSX libc, it's set to true, which means "follow POSIX", which we don't want here */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" if (syscall(SYS_kill, -1, SIGKILL, false) == 0) { break; } +#pragma clang diagnostic pop #else if (kill(-1, SIGKILL) == 0) { break;