[Scummvm-cvs-logs] SF.net SVN: scummvm:[49847] scummvm/trunk
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Jun 15 14:34:55 CEST 2010
Revision: 49847
http://scummvm.svn.sourceforge.net/scummvm/?rev=49847&view=rev
Author: fingolfin
Date: 2010-06-15 12:34:55 +0000 (Tue, 15 Jun 2010)
Log Message:
-----------
Fix some warnings about 'format not a string literal'.
Modified Paths:
--------------
scummvm/trunk/base/main.cpp
scummvm/trunk/gui/GuiManager.cpp
Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp 2010-06-15 12:34:33 UTC (rev 49846)
+++ scummvm/trunk/base/main.cpp 2010-06-15 12:34:55 UTC (rev 49847)
@@ -103,11 +103,11 @@
// Query the plugins and find one that will handle the specified gameid
printf(_t("User picked target '%s' (gameid '%s')...\n"), ConfMan.getActiveDomainName().c_str(), gameid.c_str());
- printf(_t(" Looking for a plugin supporting this gameid... "));
+ printf("%s", _t(" Looking for a plugin supporting this gameid... "));
GameDescriptor game = EngineMan.findGame(gameid, &plugin);
if (plugin == 0) {
- printf(_t("failed\n"));
+ printf("%s", _t("failed\n"));
warning(_t("%s is an invalid gameid. Use the --list-games option to list supported gameid"), gameid.c_str());
return 0;
} else {
@@ -416,7 +416,7 @@
} else {
// A dialog would be nicer, but we don't have any
// screen to draw on yet.
- warning(_("Could not find any engine capable of running the selected game"));
+ warning("%s", _("Could not find any engine capable of running the selected game"));
GUI::displayErrorDialog(_("Could not find any engine capable of running the selected game"));
}
Modified: scummvm/trunk/gui/GuiManager.cpp
===================================================================
--- scummvm/trunk/gui/GuiManager.cpp 2010-06-15 12:34:33 UTC (rev 49846)
+++ scummvm/trunk/gui/GuiManager.cpp 2010-06-15 12:34:55 UTC (rev 49847)
@@ -73,7 +73,7 @@
// Loading the theme failed, try to load the built-in theme
if (!loadNewTheme("builtin", gfxMode)) {
// Loading the built-in theme failed as well. Bail out
- error(_t("Failed to load any GUI theme, aborting"));
+ error("%s", _t("Failed to load any GUI theme, aborting"));
}
}
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