Commit 19cd92f8 authored by Dominik Taborsky's avatar Dominik Taborsky Committed by Daniel Salzman

Mute warning with no sigemptyset return check

parent 0cddbbc2
......@@ -139,7 +139,7 @@ static void setup_signals(void)
action.sa_handler = interrupt_handle;
static sigset_t block_mask;
sigemptyset(&block_mask);
(void)sigemptyset(&block_mask);
int signals[] = { SIGALRM, SIGHUP, SIGINT, SIGPIPE, SIGTERM };
size_t count = sizeof(signals) / sizeof(*signals);
......@@ -208,7 +208,7 @@ static void event_loop(server_t *server)
int remote = remote_bind(&addr);
sigset_t empty;
sigemptyset(&empty);
(void)sigemptyset(&empty);
/* Run event loop. */
for (;;) {
......
......@@ -127,7 +127,7 @@ static void *thread_ep(void *data)
// Unblock SIGALRM
sigset_t mask;
sigemptyset(&mask);
(void)sigemptyset(&mask);
sigaddset(&mask, SIGALRM);
pthread_sigmask(SIG_UNBLOCK, &mask, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment