aboutsummaryrefslogtreecommitdiff
path: root/debug.cpp
diff options
context:
space:
mode:
authorJames Brown2002-02-24 17:25:03 +0000
committerJames Brown2002-02-24 17:25:03 +0000
commitabbc4bf289892ce20a7de1560c171a5822c897e1 (patch)
treec0962bbbbc2279ec71528b8a94afe412e1f1e8bd /debug.cpp
parentc8522359f5bd376433bf58ead734de43534a109c (diff)
downloadscummvm-rg350-abbc4bf289892ce20a7de1560c171a5822c897e1.tar.gz
scummvm-rg350-abbc4bf289892ce20a7de1560c171a5822c897e1.tar.bz2
scummvm-rg350-abbc4bf289892ce20a7de1560c171a5822c897e1.zip
Code cleanup - get rid of a bunch of typecast and unused variable warnings.
svn-id: r3627
Diffstat (limited to 'debug.cpp')
-rw-r--r--debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.cpp b/debug.cpp
index 8b9ea334c4..7e44d9609e 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -60,8 +60,6 @@ void ScummDebugger::attach(Scumm *s) {
void BoxTest(int num);
bool ScummDebugger::do_command() {
- int cmd;
-
switch(get_command()) {
case CMD_HELP:
printf(
@@ -121,8 +119,10 @@ bool ScummDebugger::do_command() {
return true;
case CMD_EXIT:
exit(1);
+
+ default: /* this line is never reached */
+ error("Unknown debug command");
}
- /* this line is never reached */
}
void ScummDebugger::enter() {