aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-15 16:27:34 +0900
committerOphestra <cat@gensokyo.uk>2025-11-15 16:36:36 +0900
commitc761e1de4dcf87b9106e4f70cb89217a81aa2f9f (patch)
tree90f01a31db350353a98d563f4b898eba4f919b90 /internal
parenta91920310d20e1fc472dea044fce8fd9438835df (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/outcome/shim-signal.c2
1 files changed, 1 insertions, 1 deletions
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)