Fix compiler warning about unused variable set by getch()
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Sep 2013 14:40:21 +0000 (10:40 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Sep 2013 22:54:52 +0000 (18:54 -0400)
src/emuconsole.c

index b8c3bc3..9d76976 100644 (file)
@@ -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)