mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 04:40:04 +01:00
build: enable "-Wcast-align" warning
It seems useful and might show something relevant.
This commit is contained in:
parent
68db517808
commit
68afa83c1c
2 changed files with 2 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ endif
|
|||
common_flags += cc.get_supported_arguments([
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Wcast-align=strict',
|
||||
'-Wdeclaration-after-statement',
|
||||
'-Wfloat-equal',
|
||||
'-Wformat-nonliteral',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue