aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/signal.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 16:27:01 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 17:01:18 +0200
commitc34317dc2cbb1d636fd00bd201033acb1ae22016 (patch)
tree54a1a823562fa7453d8378bde19b45dd657e96e8 /src/signal.h
parentserver: more logging (diff)
downloadcimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.tar.gz
cimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.zip
make compilers happier
Diffstat (limited to 'src/signal.h')
-rw-r--r--src/signal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/signal.h b/src/signal.h
index ac6da9d..d06ab6d 100644
--- a/src/signal.h
+++ b/src/signal.h
@@ -1,13 +1,15 @@
#ifndef __SIGNAL_H__
#define __SIGNAL_H__
+#include "compiler.h"
+
#include <pthread.h>
#include <signal.h>
#include <string.h>
extern volatile sig_atomic_t global_stop_flag;
-static void signal_handler(int)
+static void signal_handler(UNUSED int signum)
{
global_stop_flag = 1;
}