1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0023727: Variable 'A' set but not used in Graphic3d_ArrayOfPrimitives::VertexColor

This commit is contained in:
kgv 2013-01-26 23:35:13 +04:00 committed by kgv
parent 4709515e0f
commit 6598416b22

8
src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx Executable file → Normal file
View File

@ -252,13 +252,13 @@ inline void Graphic3d_ArrayOfPrimitives::VertexColor(const Standard_Integer anIn
Standard_Integer aColor; Standard_Integer aColor;
VertexColor(anIndex, aColor); VertexColor(anIndex, aColor);
if( myPrimitiveArray->vcolours ) { if( myPrimitiveArray->vcolours ) {
Standard_Integer r,g,b,a; Standard_Integer r,g,b;
Standard_Integer aColor; Standard_Integer aColor;
VertexColor(anIndex, aColor); VertexColor(anIndex, aColor);
Standard_Real A; /*Standard_Real A;
a = aColor & 0xff000000; Standard_Integer a = aColor & 0xff000000;
a >>= 24; a >>= 24;
A = ((Standard_Real) a) / 255.; A = ((Standard_Real) a) / 255.;*/
b = aColor & 0x00ff0000; b = aColor & 0x00ff0000;
b >>= 16; b >>= 16;