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 <yshuiv7@gmail.com>
This commit is contained in:
parent
709065d531
commit
98d8e84680
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue