From 43285fefafed6821fb277c71da7b28d5291d87dd Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 27 Oct 2011 21:32:28 +0000 Subject: * Fix various warnings with GCC and clang --- src/sys/con_tty.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/sys/con_tty.c') diff --git a/src/sys/con_tty.c b/src/sys/con_tty.c index 20afab4c..0d8da734 100644 --- a/src/sys/con_tty.c +++ b/src/sys/con_tty.c @@ -90,13 +90,14 @@ send "\b \b" static void CON_Back( void ) { char key; + size_t UNUSED_VAR size; key = '\b'; - write(STDOUT_FILENO, &key, 1); + size = write(STDOUT_FILENO, &key, 1); key = ' '; - write(STDOUT_FILENO, &key, 1); + size = write(STDOUT_FILENO, &key, 1); key = '\b'; - write(STDOUT_FILENO, &key, 1); + size = write(STDOUT_FILENO, &key, 1); } /* @@ -147,12 +148,13 @@ static void CON_Show( void ) ttycon_hide--; if (ttycon_hide == 0) { - write(STDOUT_FILENO, "]", 1); + size_t UNUSED_VAR size; + size = write(STDOUT_FILENO, "]", 1); if (TTY_con.cursor) { for (i=0; i