mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-30 22:51:01 +00:00
- fixed compilation with Clang
src/common/scripting/backend/vmbuilder.cpp:869:88: error: cannot pass non-trivial object of type 'FString' to variadic method; expected type from format string was 'char *' [-Wnon-pod-varargs] src/common/scripting/backend/vmbuilder.cpp:916:85: error: cannot pass non-trivial object of type 'FString' to variadic method; expected type from format string was 'char *' [-Wnon-pod-varargs]
This commit is contained in:
parent
81fb9a26b2
commit
62f37079a7
1 changed files with 2 additions and 2 deletions
|
@ -866,7 +866,7 @@ void FFunctionBuildList::Build()
|
|||
item.Proto = ctx.ReturnProto;
|
||||
if (item.Proto == nullptr)
|
||||
{
|
||||
item.Code->ScriptPosition.Message(MSG_ERROR, "Function %s without prototype", item.PrintableName);
|
||||
item.Code->ScriptPosition.Message(MSG_ERROR, "Function %s without prototype", item.PrintableName.GetChars());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -913,7 +913,7 @@ void FFunctionBuildList::Build()
|
|||
catch (CRecoverableError &err)
|
||||
{
|
||||
// catch errors from the code generator and pring something meaningful.
|
||||
item.Code->ScriptPosition.Message(MSG_ERROR, "%s in %s", err.GetMessage(), item.PrintableName);
|
||||
item.Code->ScriptPosition.Message(MSG_ERROR, "%s in %s", err.GetMessage(), item.PrintableName.GetChars());
|
||||
}
|
||||
}
|
||||
delete item.Code;
|
||||
|
|
Loading…
Reference in a new issue