summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-01-02 15:15:38 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-01-02 15:20:39 +0100
commit610ceb05025c9c7a9a34dddcb0dac506b8eab441 (patch)
tree61c3c0eb47ac398aec3c17056e47e645a49a9fbd /bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
parentab2d3462f412d5180e60512df0dfb9c3b13ebf0c (diff)
Fix some warnings for Raspberry pi 4 (part4)
Fix similar pbs as previous commits Change-Id: Ib2964329f75402cd5457e4bf3362076c0d4f4ea2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108572 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
index aaba8ffb7b6d..103f2b492e3a 100644
--- a/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
@@ -272,8 +272,7 @@ namespace
}
if (pReturnTypeDescr)
{
- typelib_TypeClass eRet =
- static_cast<typelib_TypeClass>(pReturnTypeDescr->eTypeClass);
+ typelib_TypeClass eRet = pReturnTypeDescr->eTypeClass;
TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
return eRet;
}
@@ -381,7 +380,7 @@ namespace
{
typelib_TypeDescription * pTD = nullptr;
TYPELIB_DANGER_GET(&pTD,
- reinterpret_cast<Type *>(pCallStack[2])->getTypeLibType());
+ static_cast<Type *>(pCallStack[2])->getTypeLibType());
if (pTD)
{
XInterface * pInterface = nullptr;
@@ -393,7 +392,7 @@ namespace
if (pInterface)
{
::uno_any_construct(
- reinterpret_cast< uno_Any * >( pCallStack[0] ),
+ static_cast< uno_Any * >( pCallStack[0] ),
&pInterface, pTD, cpp_acquire );
pInterface->release();
TYPELIB_DANGER_RELEASE( pTD );
@@ -576,8 +575,8 @@ void bridges::cpp_uno::shared::VtableFactory::flushCode(
{
#ifndef ANDROID
static void (*clear_cache)(unsigned char const*, unsigned char const*)
- = (void (*)(unsigned char const*, unsigned char const*))
- dlsym(RTLD_DEFAULT, "__clear_cache");
+ = reinterpret_cast<void (*)(unsigned char const*, unsigned char const*)>
+ (dlsym(RTLD_DEFAULT, "__clear_cache"));
(*clear_cache)(beg, end);
#else
cacheflush((long) beg, (long) end, 0);