From 98d8e84680ec589d37683c5b1423d67bf99959d0 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 20 Feb 2019 01:18:19 +0000 Subject: [PATCH] Disable spurious GCC -Wmissing-braces See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80454 Signed-off-by: Yuxuan Shui --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e3adef0..097d623 100644 --- a/meson.build +++ b/meson.build @@ -47,7 +47,7 @@ endif add_global_arguments('-D_GNU_SOURCE', language: 'c') warns = [ 'all', 'extra', 'no-unused-parameter', 'nonnull', 'shadow', - 'implicit-fallthrough', 'no-unknown-warning-option' ] + 'implicit-fallthrough', 'no-unknown-warning-option', 'no-missing-braces' ] foreach w : warns if cc.has_argument('-W'+w) add_global_arguments('-W'+w, language: 'c')