From 2ef8a32a0119f93483e2b58c9bd1f2f42851f9ea Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 16 Nov 2008 20:20:31 +0000 Subject: Fixed various g++ warnings ("format not a string literal and no format arguments"). svn-id: r35096 --- engines/scumm/debugger.cpp | 2 +- engines/scumm/he/logic_he.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp index a391ba5332..891b5c0135 100644 --- a/engines/scumm/debugger.cpp +++ b/engines/scumm/debugger.cpp @@ -54,7 +54,7 @@ void debugC(int channel, const char *s, ...) { vsnprintf(buf, STRINGBUFLEN, s, va); va_end(va); - debug(buf); + debug("%s", buf); } ScummDebugger::ScummDebugger(ScummEngine *s) diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp index bdb48f70ed..5bc61da76d 100644 --- a/engines/scumm/he/logic_he.cpp +++ b/engines/scumm/he/logic_he.cpp @@ -90,7 +90,7 @@ int32 LogicHE::dispatch(int op, int numArgs, int32 *args) { } strncat(str, "])", 256); - debug(0, str); + debug(0, "%s", str); #else // Used for parallel trace utility for (int i = 0; i < numArgs; i++) -- cgit v1.2.3