1
0
Fork 0
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:
Yuxuan Shui 2019-07-25 01:57:38 +01:00
parent 3f2a6718df
commit c3c0578d14
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

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