meson: Comment why we disable certain compiler warnings

This knowledge shouldn't be lost when we delete the Autotools build
system.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-07-15 12:14:45 +01:00
parent ab01169a20
commit e5d2e402f9

View file

@ -1012,8 +1012,14 @@ if cc.get_id() == 'msvc'
]
else
compile_warnings += [
# These warnings are intentionally disabled:
# - missing field initializers being implicitly 0 is a feature,
# not a bug
# - -Wunused-parameter is annoying when writing callbacks that follow
# a fixed signature but do not necessarily need all of its parameters
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-Wchar-subscripts',
'-Wfloat-equal',
]