From 2c2ef3973af95a56eb7fb333cff3f63181583652 Mon Sep 17 00:00:00 2001 From: David Turner Date: Sun, 23 Jan 2011 20:51:16 +0000 Subject: [PATCH] SWORD25: Fix GCC Compilation Warnings. svn-id: r55482 --- engines/sword25/gfx/animationtemplateregistry.cpp | 4 ++-- engines/sword25/gfx/renderobjectregistry.cpp | 4 ++-- engines/sword25/math/regionregistry.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/sword25/gfx/animationtemplateregistry.cpp b/engines/sword25/gfx/animationtemplateregistry.cpp index d942ac2ff74..ee580034556 100644 --- a/engines/sword25/gfx/animationtemplateregistry.cpp +++ b/engines/sword25/gfx/animationtemplateregistry.cpp @@ -42,11 +42,11 @@ DECLARE_SINGLETON(Sword25::AnimationTemplateRegistry); namespace Sword25 { void AnimationTemplateRegistry::logErrorLn(const char *message) const { - error(message); + error("%s", message); } void AnimationTemplateRegistry::logWarningLn(const char *message) const { - warning(message); + warning("%s", message); } bool AnimationTemplateRegistry::persist(OutputPersistenceBlock &writer) { diff --git a/engines/sword25/gfx/renderobjectregistry.cpp b/engines/sword25/gfx/renderobjectregistry.cpp index f8c7c397895..40029957b18 100644 --- a/engines/sword25/gfx/renderobjectregistry.cpp +++ b/engines/sword25/gfx/renderobjectregistry.cpp @@ -39,11 +39,11 @@ DECLARE_SINGLETON(Sword25::RenderObjectRegistry); namespace Sword25 { void RenderObjectRegistry::logErrorLn(const char *message) const { - error(message); + error("%s", message); } void RenderObjectRegistry::logWarningLn(const char *message) const { - warning(message); + warning("%s", message); } } // End of namespace Sword25 diff --git a/engines/sword25/math/regionregistry.cpp b/engines/sword25/math/regionregistry.cpp index f11f45540f9..5802fbb3ff1 100644 --- a/engines/sword25/math/regionregistry.cpp +++ b/engines/sword25/math/regionregistry.cpp @@ -42,11 +42,11 @@ DECLARE_SINGLETON(Sword25::RegionRegistry); namespace Sword25 { void RegionRegistry::logErrorLn(const char *message) const { - error(message); + error("%s", message); } void RegionRegistry::logWarningLn(const char *message) const { - warning(message); + warning("%s", message); } bool RegionRegistry::persist(OutputPersistenceBlock &writer) {