mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-03 17:20:13 +01:00
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:
parent
ab01169a20
commit
e5d2e402f9
1 changed files with 6 additions and 0 deletions
|
|
@ -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',
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue