From c761e1de4dcf87b9106e4f70cb89217a81aa2f9f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Nov 2025 16:27:34 +0900 Subject: nix: build with clang Clang is better than gcc in various ways. This also pulls in clang-format which is very helpful. Signed-off-by: Ophestra --- internal/outcome/shim-signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/outcome/shim-signal.c b/internal/outcome/shim-signal.c index 7e562068..0e04abb4 100644 --- a/internal/outcome/shim-signal.c +++ b/internal/outcome/shim-signal.c @@ -38,7 +38,7 @@ static void hakurei_shim_sigaction(int sig, siginfo_t *si, void *ucontext) { void hakurei_shim_setup_cont_signal(pid_t ppid, int fd) { if (hakurei_shim_param_ppid != -1 || hakurei_shim_fd != -1) - *(int *)NULL = 0; /* unreachable */ + *(volatile int *)NULL = 0; /* unreachable */ struct sigaction new_action = {0}, old_action = {0}; if (sigaction(SIGCONT, NULL, &old_action) != 0) -- cgit v1.3.1