aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.c
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/server.c
parentserver: more logging (diff)
downloadcimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.tar.gz
cimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.zip
make compilers happier
Diffstat (limited to '')
-rw-r--r--src/server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c
index 6a4b73c..a84016e 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1,5 +1,6 @@
#include "server.h"
#include "ci_queue.h"
+#include "compiler.h"
#include "log.h"
#include "msg.h"
#include "signal.h"
@@ -144,7 +145,7 @@ static int worker_requeue_run(struct server *server, struct ci_queue_entry *ci_r
static int worker_iteration(struct server *server, int fd)
{
- struct ci_queue_entry *ci_run;
+ struct ci_queue_entry *ci_run = NULL;
int ret = 0;
ret = worker_dequeue_run(server, &ci_run);
@@ -177,12 +178,13 @@ static int worker_thread(struct server *server, int fd)
return ret;
}
-static int msg_new_worker_handler(struct server *server, int client_fd, const struct msg *)
+static int msg_new_worker_handler(struct server *server, int client_fd,
+ UNUSED const struct msg *request)
{
return worker_thread(server, client_fd);
}
-static int msg_new_worker_parser(const struct msg *)
+static int msg_new_worker_parser(UNUSED const struct msg *msg)
{
return 1;
}