mariadb/storage/innobase/trx
Marko Mäkelä a2bd936c52 MDEV-33161 Function pointer signature mismatch in LF_HASH
In cmake -DWITH_UBSAN=ON builds with clang but not with GCC,
-fsanitize=undefined will flag several runtime errors on
function pointer mismatch related to the lock-free hash table LF_HASH.

Let us use matching function signatures and remove function pointer
casts in order to avoid potential bugs due to undefined behaviour.

These errors could be caught at compilation time by
-Wcast-function-type-strict, which is available starting with clang-16,
but not available in any version of GCC as of now. The old GCC flag
-Wcast-function-type is enabled as part of -Wextra, but it specifically
does not catch these errors.

Reviewed by: Vladislav Vaintroub
2024-06-10 12:35:33 +03:00
..
trx0i_s.cc
trx0purge.cc
trx0rec.cc
trx0roll.cc
trx0rseg.cc
trx0sys.cc
trx0trx.cc MDEV-33161 Function pointer signature mismatch in LF_HASH 2024-06-10 12:35:33 +03:00
trx0undo.cc