Skip to content

Commit 761f89f

Browse files
authored
Update ParseContext.cpp
1 parent a90c86a commit 761f89f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/translator/ParseContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6010,7 +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");
6013+
//warning(location, "Name of a built-in function cannot be redeclared as function");
60146014
}
60156015
}
60166016
else
@@ -6021,7 +6021,7 @@ TFunction *TParseContext::parseFunctionDeclarator(const TSourceLoc &location, TF
60216021
symbolTable.findBuiltIn(function->getMangledName(), getShaderVersion());
60226022
if (builtIn)
60236023
{
6024-
warning(location, "built-in functions cannot be redefined");
6024+
//warning(location, "built-in functions cannot be redefined");
60256025
}
60266026
}
60276027

0 commit comments

Comments
 (0)