]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Comment why we disable certain compiler warnings
authorSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 11:14:45 +0000 (12:14 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 11:22:59 +0000 (12:22 +0100)
This knowledge shouldn't be lost when we delete the Autotools build
system.

Signed-off-by: Simon McVittie <smcv@collabora.com>
meson.build

index 638bbf5fceaf0eda78608b96e88ca6edf63969ab..cc94bbde2590171877977166e396f9e5ad1f7649 100644 (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',
   ]