diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-13 16:25:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-18 17:19:16 +0100 |
commit | 4cc07334fd9a386cafa414279a62445d7124c06e (patch) | |
tree | 74e82e56944aeac38f42718d1a14771400bac533 /bridges | |
parent | 6c8a5bcfe92f7b59efae9361bfdba4819f2ca5c2 (diff) |
-Werror,-Wdynamic-class-memaccess
destination for this 'memcpy' call is a pointer to dynamic class '__type_info';
vtable pointer will be overwritten
source of this 'memcpy' call is a pointer to dynamic class 'type_info'; vtable
pointer will be copied
explicitly cast the pointer to silence this warning
Change-Id: Ic9a55dfa11643ac2c7ebc02332325a2f58516d04
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx index 1fa061c0fabf..d01f6cd50ac6 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -523,7 +523,7 @@ struct ExceptionType // As _n0 is always initialized to zero, that means the // hasvirtbase flag (see the ONTL catchabletype struct) is // off, and thus the copyctor is of the ctor_ptr kind. - memcpy(&type_info, mscx_getRTTI(pTD->pTypeName), mscx_getRTTI_len(pTD->pTypeName)); + memcpy(static_cast<void *>(&type_info), static_cast<void *>(mscx_getRTTI(pTD->pTypeName)), mscx_getRTTI_len(pTD->pTypeName)); _pTypeInfo = static_cast<sal_uInt32>( reinterpret_cast<sal_uInt64>(&type_info) - pCodeBase); GenerateConstructorTrampoline( pCode, pTD ); |