Change ERROR to WARNING to finish fixing bug 11904, comment 3: bug 11856 resolved to drop the ERROR regarding no statements after the last label in the switch.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26479 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
8d6ce1c227
commit
2ea882fdae
3 changed files with 58 additions and 52 deletions
|
|
@ -4578,7 +4578,7 @@ TIntermNode* TParseContext::addSwitch(TSourceLoc loc, TIntermTyped* expression,
|
|||
return expression;
|
||||
|
||||
if (lastStatements == 0) {
|
||||
error(loc, "last case/default label must be followed by statements", "switch", "");
|
||||
warn(loc, "last case/default label not be followed by statements", "switch", "");
|
||||
|
||||
return expression;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue