[qwaq] Avoid ignored return val warning

If those particular writes file (and it matters), we probably have
bigger problems.
This commit is contained in:
Bill Currie 2021-04-03 00:14:49 +09:00
parent 64bfaeca6c
commit a5df5867b6

View file

@ -445,16 +445,16 @@ void qwaq_input_init (qwaq_resources_t *res)
// ncurses takes care of input mode for us, so need only tell xterm
// what we need
write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1);
write(1, SGR_ON, sizeof (SGR_ON) - 1);
(void) write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1);
(void) write(1, SGR_ON, sizeof (SGR_ON) - 1);
}
void qwaq_input_shutdown (qwaq_resources_t *res)
{
// ncurses takes care of input mode for us, so need only tell xterm
// what we need
write(1, SGR_OFF, sizeof (SGR_OFF) - 1);
write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1);
(void) write(1, SGR_OFF, sizeof (SGR_OFF) - 1);
(void) write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1);
#ifdef HAVE_SIGACTION
sigaction (SIGWINCH, &save_winch, 0);