bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ef4948bde237459a407a7deede6ab4e4e5b4551b
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Tue Jun 10 18:50:48 2025 +0200
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Wed Jun 11 12:15:58 2025 +0200

    linux_aarch64: loplugin:cstylecast in bridges
    
    
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:588:10:
 error: C-style cast from incomplete 'void *' to 'void (*)(const unsigned char 
*, const unsigned char *)' (BitCast) [loplugin:cstylecast]
           = (void (*)(unsigned char const *, unsigned char const *)) dlsym(
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    
    fix that by using reinterpret_cast instead (and also fix the indent of
    the lines)
    
    Change-Id: I06ee2b2ca350790e2f97435cd70e58acd7c2cf84
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186334
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Tested-by: Jenkins

diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx 
b/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx
index ab58d93f5fd8..8b41a9ae1119 100644
--- a/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx
@@ -584,10 +584,10 @@ void bridges::cpp_uno::shared::VtableFactory::flushCode(
     unsigned char const * begin, unsigned char const * end)
 {
 #if !defined ANDROID && !defined MACOSX
-   static void (*clear_cache)(unsigned char const *, unsigned char const *)
-       = (void (*)(unsigned char const *, unsigned char const *)) dlsym(
-           RTLD_DEFAULT, "__clear_cache");
-   (*clear_cache)(begin, end);
+    static void (*clear_cache)(unsigned char const *, unsigned char const *)
+        = reinterpret_cast<void (*)(unsigned char const *, unsigned char const 
*)>
+            (dlsym(RTLD_DEFAULT, "__clear_cache"));
+    (*clear_cache)(begin, end);
 #elif defined __clang_major__ && __clang_major__ < 21
     // GCC clarified with
     // 
<http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=a90b0cdd444f6dde1084a439862cf507f6d3b2ae>

Reply via email to