From: Hugo Villeneuve Date: Sun, 8 Sep 2013 14:40:21 +0000 (-0400) Subject: Fix compiler warning about unused variable set by getch() X-Git-Tag: v1.1.2~3 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=47a60dcfbfdb7a29bd933a850292b752970f2af0;p=emu8051.git Fix compiler warning about unused variable set by getch() --- diff --git a/src/emuconsole.c b/src/emuconsole.c index b8c3bc3..9d76976 100644 --- a/src/emuconsole.c +++ b/src/emuconsole.c @@ -60,7 +60,6 @@ RemoveSpaces(char *buffer) static void console_exec(char *Address, char *NumberInst) { - char dummy; int NbInst = -1; /* -1 is infinity */ if (strlen(Address) == 0) { printf("Invalid address\n"); @@ -83,7 +82,7 @@ console_exec(char *Address, char *NumberInst) NbInst--; } while (!IsBreakpoint(cpu8051.pc) && (NbInst != 0) && !kbhit()); if (kbhit()) { - dummy = getch(); /* Flush key */ + (void) getch(); /* Flush key */ printf("Caught break signal!\n"); } if (NbInst == 0)