MDEV-34348: Add cast-function-type-strict to warnings

This commit is contained in:
Daniel Black 2024-07-09 18:29:11 +10:00 committed by Brandon Nesterenko
parent 971a0ba23c
commit 6456e437f2

View file

@ -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()