From deb7dcc8bb26483ea1f0271e04de441a586dd144 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 28 Aug 2010 16:02:08 +0000 Subject: SWORD25: Fix warnings svn-id: r53292 --- engines/sword25/gfx/animationresource.cpp | 4 ++-- engines/sword25/sword25.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/sword25/gfx/animationresource.cpp b/engines/sword25/gfx/animationresource.cpp index 3ab1991ca4..9f66469ebb 100644 --- a/engines/sword25/gfx/animationresource.cpp +++ b/engines/sword25/gfx/animationresource.cpp @@ -206,7 +206,7 @@ bool AnimationResource::parserCallback_frame(ParserNode *node) { if (!flipVString.empty()) { if (!parseBooleanKey(flipVString, frame.FlipV)) { BS_LOG_WARNINGLN("Illegal flipv value (\"%s\") in tag in \"%s\". Assuming default (\"false\").", - flipVString, GetFileName().c_str()); + flipVString.c_str(), GetFileName().c_str()); frame.FlipV = false; } } else @@ -216,7 +216,7 @@ bool AnimationResource::parserCallback_frame(ParserNode *node) { if (!flipHString.empty()) { if (!parseBooleanKey(flipVString, frame.FlipV)) { BS_LOG_WARNINGLN("Illegal fliph value (\"%s\") in tag in \"%s\". Assuming default (\"false\").", - flipHString, GetFileName().c_str()); + flipHString.c_str(), GetFileName().c_str()); frame.FlipH = false; } } else diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp index 946865cf10..f850bfb43b 100644 --- a/engines/sword25/sword25.cpp +++ b/engines/sword25/sword25.cpp @@ -50,7 +50,7 @@ const char *const PACKAGE_MANAGER = "archiveFS"; const char *const DEFAULT_SCRIPT_FILE = "/system/boot.lua"; void LogToStdout(const char *Message) { - debugN(0, Message); + debugN(0, "%s", Message); } Sword25Engine::Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc): -- cgit v1.2.3