From d8824d631afb553b9e9a637f8912f7f5225621c1 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 10 Mar 2009 16:24:40 +0000 Subject: Fixed warnings svn-id: r39298 --- engines/sci/engine/scriptdebug.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/sci/engine/scriptdebug.cpp') diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 7a104c8df0..020945ee7c 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -87,7 +87,6 @@ char inputbuf[256] = ""; const char *_debug_get_input_default() { char newinpbuf[256]; - char *newline; printf("> "); fgets(newinpbuf, 254, stdin); @@ -426,12 +425,11 @@ static void _c_single_seg_info(EngineState *s, MemObject *mobj) { break; case MEM_OBJ_SYS_STRINGS: { - SystemStrings *strings = &(mobj->data.sys_strings); - int i; - sciprintf("system string table - viewing currently disabled\n"); #if 0 - for (i = 0; i < SYS_STRINGS_MAX; i++) + SystemStrings *strings = &(mobj->data.sys_strings); + + for (int i = 0; i < SYS_STRINGS_MAX; i++) if (strings->strings[i].name) sciprintf(" %s[%d]=\"%s\"\n", strings->strings[i].name, strings->strings[i].max_size, strings->strings[i].value); #endif -- cgit v1.2.3