From 6456e437f2960fec3c231656829f02c9fb110ab3 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 9 Jul 2024 18:29:11 +1000 Subject: [PATCH] MDEV-34348: Add cast-function-type-strict to warnings --- cmake/maintainer.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake index 20cf377d5d9..cbfdab4413f 100644 --- a/cmake/maintainer.cmake +++ b/cmake/maintainer.cmake @@ -44,7 +44,7 @@ SET(MY_WARNING_FLAGS # Warning flags that are in testing before moving # to MY_WARNING_FLAGS if stable. SET(MY_WARNING_FLAGS_NON_FATAL - effc++ + cast-function-type-strict ) FOREACH(F ${MY_WARNING_FLAGS}) @@ -52,6 +52,7 @@ FOREACH(F ${MY_WARNING_FLAGS}) ENDFOREACH() FOREACH(F ${MY_WARNING_FLAGS_NON_FATAL}) + MY_CHECK_AND_SET_COMPILER_FLAG(-W${F} DEBUG RELWITHDEBINFO) MY_CHECK_AND_SET_COMPILER_FLAG(-Wno-error=${F} DEBUG RELWITHDEBINFO) ENDFOREACH()