Commit 7a77b701 authored by Brandon Nesterenko's avatar Brandon Nesterenko

MDEV-34348: MariaDB is violating clang-16 -Wcast-function-type-strict

This HEAD commit just makes cast-function-type-strict fatal.
It will stay at the HEAD, and prior commits contain the
actual fixes, organized by the part of the code that the fix
targets. Future changes will be force pushed to have their
fixes come before this HEAD.

This branch cherry-picks patches from daniel@mariadb.org
(in bb-10.5-MDEV-34508-ubsan-errors) which initially
incorporate the flag into the build, as well as fix some of
its findings.
parent 9bf3cfcc
...@@ -39,12 +39,12 @@ SET(MY_WARNING_FLAGS ...@@ -39,12 +39,12 @@ SET(MY_WARNING_FLAGS
-Wsuggest-override -Wsuggest-override
-Wvla -Wvla
-Wwrite-strings -Wwrite-strings
-Wcast-function-type-strict
) )
# Warning flags that are in testing before moving # Warning flags that are in testing before moving
# to MY_WARNING_FLAGS if stable. # to MY_WARNING_FLAGS if stable.
SET(MY_WARNING_FLAGS_NON_FATAL SET(MY_WARNING_FLAGS_NON_FATAL
cast-function-type-strict
) )
FOREACH(F ${MY_WARNING_FLAGS}) FOREACH(F ${MY_WARNING_FLAGS})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment