WaE: pesky aliasing warning with gcc 4.7.0

Change-Id: I78675ba624cf657a246f7d1211bf5075189ac873
This commit is contained in:
Caolán McNamara 2012-05-24 16:36:32 +01:00
parent 07edde2ddd
commit 268ddf9675

View file

@ -1066,8 +1066,10 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type)
Type _tElem(pTdElem->pWeakRef);
for (int i = 0; i < val->nElements; i++)
{
sal_Int8 *pValBuf = (sal_Int8 *)(&val->elements + i * pTdElem->nSize);
uno_Sequence* seq = cloneSequence(
*(uno_Sequence**) (&val->elements + i * pTdElem->nSize),
*(uno_Sequence**) (pValBuf),
_tElem);
*((uno_Sequence**) pBufCur) = seq;
pBufCur += pTdElem->nSize;