From 773cb726a8437d911d3f7ceedf4839dab6124484 Mon Sep 17 00:00:00 2001 From: Brandon Nesterenko Date: Mon, 15 Jul 2024 07:54:38 -0600 Subject: [PATCH] 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. --- cmake/maintainer.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake index cbfdab4413f..a728925721a 100644 --- a/cmake/maintainer.cmake +++ b/cmake/maintainer.cmake @@ -39,12 +39,12 @@ SET(MY_WARNING_FLAGS -Wsuggest-override -Wvla -Wwrite-strings + -Wcast-function-type-strict ) # Warning flags that are in testing before moving # to MY_WARNING_FLAGS if stable. SET(MY_WARNING_FLAGS_NON_FATAL - cast-function-type-strict ) FOREACH(F ${MY_WARNING_FLAGS})