From 4c8cf9d94b055c3b66c6fefeecade6914d15d67a Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Fri, 16 Aug 2024 10:50:34 +0000 Subject: [PATCH] omit warnings --- ww/managers/signal_manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ww/managers/signal_manager.c b/ww/managers/signal_manager.c index 9cd5c95..33797cb 100644 --- a/ww/managers/signal_manager.c +++ b/ww/managers/signal_manager.c @@ -47,7 +47,8 @@ static void multiplexedSignalHandler(int signum) { char message[50]; int length = snprintf(message, sizeof(message), "SignalManager: Received signal %d\n", signum); - write(STDOUT_FILENO, message, length); + int unused = write(STDOUT_FILENO, message, length); + (void) unused; if (state->raise_defaults) { @@ -68,7 +69,8 @@ static void multiplexedSignalHandler(int signum) static void multiplexedSignalHandlerNoArg(void) { static const char kMessage[] = "SignalManager: Executing exit callabck\n"; - write(STDOUT_FILENO, kMessage, sizeof(kMessage) - 1); + int unused = write(STDOUT_FILENO, kMessage, sizeof(kMessage) - 1); + (void) unused; for (unsigned int i = 0; i < state->handlers_len; i++) {