build: enable "-Wcast-align" warning

It seems useful and might show something relevant.
This commit is contained in:
Thomas Haller
2022-12-01 13:43:48 +01:00
parent 68db517808
commit 68afa83c1c
2 changed files with 2 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
$_CFLAGS_MORE_WARNINGS_DISABLE_LTO \
-Wall \
-Wextra \
-Wcast-align=strict \
-Wdeclaration-after-statement \
-Wfloat-equal \
-Wformat-nonliteral \

View File

@@ -174,6 +174,7 @@ endif
common_flags += cc.get_supported_arguments([
'-Wall',
'-Wextra',
'-Wcast-align=strict',
'-Wdeclaration-after-statement',
'-Wfloat-equal',
'-Wformat-nonliteral',