Commit c537e5fd authored by Thomas Haller's avatar Thomas Haller

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.
parent c236dc16
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment