[Libreoffice-commits] core.git: cppu/source

Stephan Bergmann sbergman at redhat.com
Mon Aug 12 00:03:58 PDT 2013


 cppu/source/uno/destr.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d1ffad798379449074d31b45c76f9570ca054f1f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Aug 12 09:02:09 2013 +0200

    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

diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx
index ec73ff0..f3bc26f 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<uno_Sequence *>(pAny->pReserved), pType, 0, release );
         break;
     }
     case typelib_TypeClass_INTERFACE:


More information about the Libreoffice-commits mailing list