Add warning-suppression flag. Combined with relaxed errors, so an enum can be used instead of many bools.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20818 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-03-08 19:26:11 +00:00
parent 4055816bc9
commit 37827023c4
7 changed files with 26 additions and 17 deletions

View file

@ -484,7 +484,7 @@ int ShCompile(
int debugOptions,
int defaultVersion, // use 100 for ES environment, 110 for desktop
bool forwardCompatible, // give errors for use of deprecated features
bool relaxedChecking // no warnings, reduced errors
EShMessages messages // warnings/errors
)
{
if (!InitThread())
@ -522,7 +522,7 @@ int ShCompile(
// they get popped again further down.
AddContextSpecificSymbols(resources, compiler->infoSink, &symbolTable, version, profile, compiler->getLanguage());
TParseContext parseContext(symbolTable, intermediate, version, profile, compiler->getLanguage(), compiler->infoSink, forwardCompatible, relaxedChecking);
TParseContext parseContext(symbolTable, intermediate, version, profile, compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
if (! goodProfile)
parseContext.error(1, "incorrect", "#version", "");