Kaydet (Commit) 124a3e68 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1268023 Logically dead code

Change-Id: I8fcda18101071db7dddc304c29e4130b04a70f89
üst ace38b3b
...@@ -113,8 +113,7 @@ static void addPreamble(OString& rShaderSource, const OString& rPreamble) ...@@ -113,8 +113,7 @@ static void addPreamble(OString& rShaderSource, const OString& rPreamble)
{ {
int nVersionStrEndPos = rShaderSource.indexOf('\n', nVersionStrStartPos); int nVersionStrEndPos = rShaderSource.indexOf('\n', nVersionStrStartPos);
// no way this should happen - if this is the case, then it's a syntax error SAL_WARN_IF(nVersionStrEndPos == -1, "vcl.opengl", "syntax error in shader");
assert(nVersionStrEndPos != -1);
if (nVersionStrEndPos == -1) if (nVersionStrEndPos == -1)
nVersionStrEndPos = nVersionStrStartPos + 8; nVersionStrEndPos = nVersionStrStartPos + 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment