Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
This commit is contained in:
parent
e1fdb1f882
commit
2ef8a32a01
12 changed files with 23 additions and 23 deletions
|
@ -146,7 +146,7 @@ void initGraphics(int width, int height, bool defaultTo1xScaler) {
|
|||
message += "'.";
|
||||
|
||||
GUIErrorMessage(message);
|
||||
error(message.c_str());
|
||||
error("%s", message.c_str());
|
||||
}
|
||||
|
||||
// Just show warnings then these occur:
|
||||
|
@ -179,7 +179,7 @@ void GUIErrorMessage(const Common::String msg) {
|
|||
GUI::MessageDialog dialog(msg);
|
||||
dialog.runModal();
|
||||
} else {
|
||||
error(msg.c_str());
|
||||
error("%s", msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue