diff options
author | Paul Gilbert | 2019-06-25 22:37:19 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-06 15:27:07 -0700 |
commit | 822cd6f16564a4fbb3436600894c144bf9e160d6 (patch) | |
tree | 876058f5583b98c9458c79b866b0b61746c5c380 /engines/glk/alan3/act.cpp | |
parent | cd7cf4141425e3e77b164d2dbcbae8de1eacb035 (diff) | |
download | scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.gz scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.bz2 scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.zip |
GLK: ALAN3: Further warning fixes
Diffstat (limited to 'engines/glk/alan3/act.cpp')
-rw-r--r-- | engines/glk/alan3/act.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/glk/alan3/act.cpp b/engines/glk/alan3/act.cpp index 87366cd3dc..1c89e354d1 100644 --- a/engines/glk/alan3/act.cpp +++ b/engines/glk/alan3/act.cpp @@ -89,16 +89,18 @@ static void executeCommand(int verb, Parameter parameters[]) */ void action(int verb, Parameter parameters[], Parameter multipleMatches[]) { - int i, multiplePosition; - char marker[10]; - + int multiplePosition; +#ifdef TODO + char marker[10]; +#endif + multiplePosition = findMultiplePosition(parameters); if (multiplePosition != -1) { -#ifdef TODO +#ifdef TODO jmp_buf savedReturnLabel; memcpy(savedReturnLabel, returnLabel, sizeof(returnLabel)); sprintf(marker, "($%d)", multiplePosition+1); /* Prepare a printout with $1/2/3 */ - for (i = 0; !isEndOfArray(&multipleMatches[i]); i++) { + for (int i = 0; !isEndOfArray(&multipleMatches[i]); i++) { copyParameter(¶meters[multiplePosition], &multipleMatches[i]); setGlobalParameters(parameters); /* Need to do this here since the marker use them */ output(marker); |