0024252: GCC warnings on breakage of strict-aliasing rules

Fixed type casts in NCollection maps
Avoid invalid type cast in handling of LDOM text object
Use correct pointer type in callback function of Graphic3d_CGraduatedTrihedron class
Format of printf() simplified in IntPatch_Point.cxx
This commit is contained in:
abv
2014-01-15 06:40:18 +04:00
committed by bugmaster
parent 504a896866
commit fd03ee4b3b
10 changed files with 49 additions and 113 deletions

View File

@@ -173,13 +173,10 @@ template < class TheKeyType,
//! ReSize
void ReSize (const Standard_Integer N)
{
DataMapNode** newdata = NULL;
DataMapNode** dummy = NULL;
NCollection_ListNode** newdata = NULL;
NCollection_ListNode** dummy = NULL;
Standard_Integer newBuck;
if (BeginResize (N, newBuck,
(NCollection_ListNode**&)newdata,
(NCollection_ListNode**&)dummy,
this->myAllocator))
if (BeginResize (N, newBuck, newdata, dummy, this->myAllocator))
{
if (myData1)
{
@@ -202,10 +199,7 @@ template < class TheKeyType,
}
}
}
EndResize(N,newBuck,
(NCollection_ListNode**&)newdata,
(NCollection_ListNode**&)dummy,
this->myAllocator);
EndResize (N, newBuck, newdata, dummy, this->myAllocator);
}
}