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)
committerbugmaster <bugmaster@opencascade.com>
Fri, 6 Oct 2017 07:27:59 +0000 (10:27 +0300)
commit6a657c9247166f589a1b898b0eef91f462558ba5
tree3f20281e933ed0124fa946bdb863bacd66989db2
parentc85a994a3775928fa6cc55afff89180a10f495f6
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