From d1ffad798379449074d31b45c76f9570ca054f1f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 12 Aug 2013 09:02:09 +0200 Subject: error: dereferencing type-punned pointer will break strict-aliasing rules gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) Change-Id: I0b5809ec1dd3fb616bb7698972205a2810ed1aa5 --- cppu/source/uno/destr.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx index ec73ff0a7172..f3bc26ff3927 100644 --- a/cppu/source/uno/destr.hxx +++ b/cppu/source/uno/destr.hxx @@ -167,7 +167,7 @@ inline void _destructAny( case typelib_TypeClass_SEQUENCE: { destructSequence( - *(uno_Sequence **) &pAny->pReserved, pType, 0, release ); + static_cast(pAny->pReserved), pType, 0, release ); break; } case typelib_TypeClass_INTERFACE: -- cgit