mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 04:24:32 +00:00
build: re-enable "-Wmissing-braces" warning
We should always get the nesting in struct initializers right. Everyhing else is error-prone, and the warning is good. Enable it.
This commit is contained in:
parent
c236dc161d
commit
c537e5fd25
|
@ -124,12 +124,6 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
|||
[int f () { int i = yolo; yolo; return i; }]
|
||||
)
|
||||
|
||||
dnl clang 3.9 would like to see "{ { 0 } }" here, but that does not
|
||||
dnl look too wise.
|
||||
NM_COMPILER_WARNING([$1], [missing-braces],
|
||||
[union { int a[1]; int b[2]; } c = { 0 }]
|
||||
)
|
||||
|
||||
dnl a new warning in gcc 8, glib 2.55 doesn't play nice yet
|
||||
dnl https://bugzilla.gnome.org/show_bug.cgi?id=793272
|
||||
NM_COMPILER_WARNING([$1], [cast-function-type],
|
||||
|
|
|
@ -169,7 +169,6 @@ if nm_debug
|
|||
'-Wno-duplicate-decl-specifier',
|
||||
'-Wno-format-truncation',
|
||||
'-Wno-gnu-variable-sized-type-not-at-end',
|
||||
'-Wno-missing-braces',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-pragmas',
|
||||
'-Wno-sign-compare',
|
||||
|
|
Loading…
Reference in a new issue