projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a0a71
)
Fix compiler warning about unused variable set by getch()
author
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 8 Sep 2013 14:40:21 +0000
(10:40 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 8 Sep 2013 22:54:52 +0000
(18:54 -0400)
src/emuconsole.c
patch
|
blob
|
history
diff --git
a/src/emuconsole.c
b/src/emuconsole.c
index
b8c3bc3
..
9d76976
100644
(file)
--- 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)