]> OCCT Git - occt-copy.git/commit
0029170: GCC 7.1 warnings -Wstrict-aliasing in Graphic3d_ArrayOfPrimitives.hxx
authorabv <abv@opencascade.com>
Sat, 30 Sep 2017 18:35:05 +0000 (21:35 +0300)
committerkgv <kgv@opencascade.com>
Mon, 4 Dec 2017 18:17:40 +0000 (21:17 +0300)
commitff414218721e825cea2f00c861d979635b9e8a54
tree38e10cbaad20f868d533fe9ac43961e981165eee
parent98781c41d30ccdd4223ba3c56c7daa791d09de7f
0029170: GCC 7.1 warnings -Wstrict-aliasing in Graphic3d_ArrayOfPrimitives.hxx

Methods Graphic3d_ArrayOfPrimitives::SetVertexColor() accepting color as three double rgb values and Graphic3d_Vec4ub object are refactored to avoid using reinterpret_cast between pointers to complex types.

Similar correction is made in ViewerTest_ObjectCommands.cxx (static function VDrawSphere).
src/Graphic3d/Graphic3d_ArrayOfPrimitives.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx