Skip to content

Commit a90c86a

Browse files
authored
Update ParseContext.cpp
1 parent c0d93fe commit a90c86a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/compiler/translator/ParseContext.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6010,8 +6010,7 @@ TFunction *TParseContext::parseFunctionDeclarator(const TSourceLoc &location, TF
60106010
{
60116011
// With ESSL 3.00 and above, names of built-in functions cannot be redeclared as
60126012
// functions. Therefore overloading or redefining builtin functions is an error.
6013-
warning(location, "Name of a built-in function cannot be redeclared as function",
6014-
static_cast<const char*>(function->name()));
6013+
warning(location, "Name of a built-in function cannot be redeclared as function");
60156014
}
60166015
}
60176016
else
@@ -6022,7 +6021,7 @@ TFunction *TParseContext::parseFunctionDeclarator(const TSourceLoc &location, TF
60226021
symbolTable.findBuiltIn(function->getMangledName(), getShaderVersion());
60236022
if (builtIn)
60246023
{
6025-
warning(location, "built-in functions cannot be redefined", static_cast<const char*>(function->name()));
6024+
warning(location, "built-in functions cannot be redefined");
60266025
}
60276026
}
60286027

0 commit comments

Comments
 (0)