mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-34348: Add cast-function-type-strict to warnings
This commit is contained in:
parent
971a0ba23c
commit
6456e437f2
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue