Skip to content

Commit

Permalink
omit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 16, 2024
1 parent 9800afc commit 4c8cf9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ww/managers/signal_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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++)
{
Expand Down

0 comments on commit 4c8cf9d

Please sign in to comment.