[Scummvm-cvs-logs] SF.net SVN: scummvm:[55482] scummvm/trunk/engines/sword25

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Sun Jan 23 21:51:16 CET 2011


Revision: 55482
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55482&view=rev
Author:   tdhs
Date:     2011-01-23 20:51:16 +0000 (Sun, 23 Jan 2011)

Log Message:
-----------
SWORD25: Fix GCC Compilation Warnings.

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/gfx/animationtemplateregistry.cpp
    scummvm/trunk/engines/sword25/gfx/renderobjectregistry.cpp
    scummvm/trunk/engines/sword25/math/regionregistry.cpp

Modified: scummvm/trunk/engines/sword25/gfx/animationtemplateregistry.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/animationtemplateregistry.cpp	2011-01-23 20:16:24 UTC (rev 55481)
+++ scummvm/trunk/engines/sword25/gfx/animationtemplateregistry.cpp	2011-01-23 20:51:16 UTC (rev 55482)
@@ -42,11 +42,11 @@
 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) {

Modified: scummvm/trunk/engines/sword25/gfx/renderobjectregistry.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/renderobjectregistry.cpp	2011-01-23 20:16:24 UTC (rev 55481)
+++ scummvm/trunk/engines/sword25/gfx/renderobjectregistry.cpp	2011-01-23 20:51:16 UTC (rev 55482)
@@ -39,11 +39,11 @@
 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

Modified: scummvm/trunk/engines/sword25/math/regionregistry.cpp
===================================================================
--- scummvm/trunk/engines/sword25/math/regionregistry.cpp	2011-01-23 20:16:24 UTC (rev 55481)
+++ scummvm/trunk/engines/sword25/math/regionregistry.cpp	2011-01-23 20:51:16 UTC (rev 55482)
@@ -42,11 +42,11 @@
 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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list