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:
Thomas Haller 2019-02-08 12:05:36 +01:00
parent c236dc161d
commit c537e5fd25
2 changed files with 0 additions and 7 deletions

View file

@ -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],

View file

@ -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',