office-gobmx/include/osl
Stephan Bergmann 4bbe329ef0 Avoid -Werror,-Wcast-function-type-mismatch
...as seen when building LOWA (i.e., --disable-dynloading) with a recent Clang
with
<999d4f8407>
"Split -Wcast-function-type into a separate group (#86131)", where
-Wcast-function-type-mismatch generally warns about casts between incompatible
function types...

> cppuhelper/source/shlib.cxx:294:23: error: cast from 'void *(*)(void *, void *)' to 'ImplementationConstructorFn *' (aka 'css::uno::XInterface *(*)(css::uno::XComponentContext *, const css::uno::Sequence<css::uno::Any> &)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
>   294 |                     = reinterpret_cast<ImplementationConstructorFn *>(
>       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   295 |                         map[i].constructor_function);
>       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...but not for the special case of casting from/to void(*)(void).

(Using the correct function type

> css::uno::XInterface * (*)(css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &)

throughout would be even better, but doesn't easily fit into this C code that is
included in low-level places that don't know those UNO types and is shared
between LOWA and Android etc.)

Change-Id: Ic4dbabbff0f772b34cf692db968c3ad257c37cb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173463
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-09-17 21:01:48 +02:00
..
detail Avoid -Werror,-Wcast-function-type-mismatch 2024-09-17 21:01:48 +02:00
test
conditn.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
conditn.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
diagnose.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
diagnose.hxx clang-tidy:readability-redundant-member-init 2021-09-01 10:01:44 +02:00
doublecheckedlocking.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
endian.h Remove support for AIX 2023-01-27 07:28:16 +00:00
file.h Revert "Fix typo in code" 2021-02-05 15:01:48 +01:00
file.hxx Remove now unneeded osl/diagnose.h 2024-07-20 10:20:31 +02:00
getglobalmutex.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
interlck.h WNT -> _WIN32 2023-08-25 11:12:31 +02:00
module.h Drop config_global.h from osl/module.h 2022-01-18 19:23:36 +01:00
module.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
mutex.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
mutex.hxx Introduce ResettableMutexGuardScopedReleaser 2024-04-04 13:21:09 +02:00
nlsupport.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
pipe.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
pipe.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
pipe_decl.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
process.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
profile.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
profile.hxx sal: fix invalid doxygen 2022-07-05 12:36:32 +02:00
security.h sal: fix invalid doxygen 2022-07-05 12:36:32 +02:00
security.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
security_decl.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
signal.h tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
socket.h sal: fix invalid doxygen 2022-07-05 12:36:32 +02:00
socket.hxx tdf#130978 Added comment to all published API 2021-02-02 20:56:27 +01:00
socket_decl.hxx sal: fix invalid doxygen 2022-07-05 12:36:32 +02:00
thread.h Revert "sb138: #i115619# fix for MinGW" 2021-06-02 15:26:28 +02:00
thread.hxx throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
time.h Turn this into a doxygen comment 2022-09-13 19:22:20 +02:00