GLK: ALAN2: Further gcc warning fixes

This commit is contained in:
dreammaster 2019-06-22 18:38:01 +01:00 committed by Paul Gilbert
parent d4075b188d
commit 62eb0be065
2 changed files with 4 additions and 2 deletions

View file

@ -1386,7 +1386,7 @@ static void openFiles() {
if (!f->open(txtfnm)) {
delete f;
Common::String s = Common::String::format("Can't open adventure text data file '%s'.", txtfnm);
::error(s.c_str());
::error("%s", s.c_str());
}
// If logging open log file

View file

@ -55,7 +55,7 @@ void rules() {
if (pop()) {
change = TRUE;
ruls[i - 1].run = TRUE;
if (trcflg)
if (trcflg) {
if (!stpflg)
printf(", Executing:>\n");
else {
@ -63,6 +63,8 @@ void rules() {
debugsay(cur.loc);
printf("), Executing:>\n");
}
}
interpret(ruls[i - 1].stms);
} else if (trcflg && !stpflg)
printf(":>\n");