- Fixed some warnings flagged by GCC 4.1.1, which brings up an interesting
observation. The following code works with VC++ 2005. It aborts with GCC:
FString str = "This is a string.";
Printf ("%s\n", str);
SVN r408 (trunk)
This commit is contained in:
parent
6f3a28e355
commit
41de448add
12 changed files with 77 additions and 48 deletions
|
|
@ -1649,7 +1649,7 @@ do_stop:
|
|||
stype = PClass::FindClass (scopename);
|
||||
if (stype == NULL)
|
||||
{
|
||||
SC_ScriptError ("%s is an unknown class.", scopename);
|
||||
SC_ScriptError ("%s is an unknown class.", scopename.GetChars());
|
||||
}
|
||||
if (!stype->IsDescendantOf (RUNTIME_CLASS(AActor)))
|
||||
{
|
||||
|
|
@ -4327,7 +4327,8 @@ void ParseClass()
|
|||
}
|
||||
else
|
||||
{
|
||||
SC_ScriptError ("Expected 'action' or 'const' but got %s", SC_TokenName(sc_TokenType, sc_String));
|
||||
FString tokname = SC_TokenName(sc_TokenType, sc_String);
|
||||
SC_ScriptError ("Expected 'action' or 'const' but got %s", tokname.GetChars());
|
||||
}
|
||||
SC_MustGetAnyToken();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue