Skip to content

Commit 773cb72

Browse files
committed
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.
1 parent 6456e43 commit 773cb72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/maintainer.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ SET(MY_WARNING_FLAGS
3939
-Wsuggest-override
4040
-Wvla
4141
-Wwrite-strings
42+
-Wcast-function-type-strict
4243
)
4344

4445
# Warning flags that are in testing before moving
4546
# to MY_WARNING_FLAGS if stable.
4647
SET(MY_WARNING_FLAGS_NON_FATAL
47-
cast-function-type-strict
4848
)
4949

5050
FOREACH(F ${MY_WARNING_FLAGS})

0 commit comments

Comments
 (0)