Coverity PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT - CID 12486 - plugins/opengl/src/privatevertexbuffer.h - switch selector expression is constant - switch (C)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Triaged
|
Medium
|
Unassigned | ||
0.9.9 |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https:/
CID: 12486
Checker: PW.SWITCH_
Category: No category available
CWE definition: No definition available
File: /tmp/buildd/
Function: No function name available
Code snippet:
75 // This will only get called from privateVertexBu
76 // so we know we've got a valid, bound program here
77 if (typeid(a[0]) == typeid(double))
78 {
CID 12486 - PW.SWITCH_
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
selector expression is constant
During compilation of file '/tmp/buildd/
79 switch (C)
80 {
81 case 1: prog->setUniform (n, (GLfloat) a[0]); break;
82 case 2: prog->setUniform2f (n, a[0], a[1]); break;
83 case 3: prog->setUniform3f (n, a[0], a[1], a[2]); break;
84 case 4: prog->setUniform4f (n, a[0], a[1], a[2], a[3]); break;
summary: |
- Coverity PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT - CID 12486 + Coverity PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT - CID 12486 - + plugins/opengl/src/privatevertexbuffer.h - switch selector expression is + constant - switch (C) |
Changed in compiz: | |
milestone: | none → 0.9.10.0 |
Changed in compiz: | |
milestone: | 0.9.10.0 → 0.9.10.2 |
Changed in compiz: | |
milestone: | 0.9.10.2 → 0.9.11.0 |
Changed in compiz: | |
status: | New → Triaged |
milestone: | 0.9.11.0 → 0.9.12.1 |
Changed in compiz: | |
milestone: | 0.9.12.1 → 0.9.12.2 |
Source file with Coverity annotations.