mirror of
https://github.com/yshui/picom.git
synced 2024-11-25 14:06:08 -05:00
meson.build: add -Wempty-body
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
3f2a6718df
commit
c3c0578d14
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ warns = [ 'all', 'cast-function-type', 'ignored-qualifiers', 'missing-parameter-
|
|||
'nonnull', 'shadow', 'no-type-limits', 'old-style-declaration', 'override-init',
|
||||
'sign-compare', 'type-limits', 'uninitialized', 'shift-negative-value',
|
||||
'unused-but-set-parameter', 'unused-parameter', 'implicit-fallthrough',
|
||||
'no-unknown-warning-option', 'no-missing-braces', 'conversion' ]
|
||||
'no-unknown-warning-option', 'no-missing-braces', 'conversion', 'empty-body' ]
|
||||
foreach w : warns
|
||||
if cc.has_argument('-W'+w)
|
||||
add_global_arguments('-W'+w, language: 'c')
|
||||
|
|
Loading…
Reference in a new issue