From 05bf62890fa724d19e4de3943b2b26a1a8eabae0 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Sat, 16 Jan 2016 16:15:20 +0100 Subject: [PATCH] Fixed various compile errors with the compatibility kill code --- src/compat/kill.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compat/kill.c b/src/compat/kill.c index d87a08f..4684db1 100644 --- a/src/compat/kill.c +++ b/src/compat/kill.c @@ -30,13 +30,14 @@ #include "io/output.h" #include #include +#include static INLINE void nothing(void) {} #ifdef VANILLA_WIN32 static HANDLE cr_job; #else -static void handle_sigterm(int signum) { +static void handle_sigterm(CR_UNUSED int signum) { assert(signum == SIGTERM); kill(-getpid(), SIGTERM); @@ -47,8 +48,7 @@ static void handle_sigterm(int signum) { void setup_parent_job(void) { #ifdef VANILLA_WIN32 // Put runner in its own job - SECURITY_ATTRIBUTES attr = {}; - cr_job = CreateJobObject(&attr, NULL); + cr_job = CreateJobObject(NULL, NULL); if (!AssignProcessToJobObject(cr_job, GetCurrentProcess())) abort(); #else