From e5d2e402f9efec3214f52c51cb91077cefe8698b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 15 Jul 2022 12:14:45 +0100 Subject: [PATCH] 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 --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 638bbf5fc..cc94bbde2 100644 --- a/meson.build +++ b/meson.build @@ -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', ] -- 2.47.3