summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-24 16:36:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-25 09:26:13 +0100
commit268ddf96756be5a850645f0c67e91cf7369a77f4 (patch)
treeda3fc993d0e0fc6658ee17b6a95c6b8bd05861bb /testtools
parent07edde2ddd309f47ddf5360f7133c181791cb3d0 (diff)
WaE: pesky aliasing warning with gcc 4.7.0
Change-Id: I78675ba624cf657a246f7d1211bf5075189ac873
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index f6d63bbc606c..940be0021116 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -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;