mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
a2bd936c52
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 |
||
---|---|---|
.. | ||
trx0i_s.cc | ||
trx0purge.cc | ||
trx0rec.cc | ||
trx0roll.cc | ||
trx0rseg.cc | ||
trx0sys.cc | ||
trx0trx.cc | ||
trx0undo.cc |