From 7d32c6139c8380d863cfff5c46609ef23baf56c8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 7 Oct 2022 15:53:52 -0400 Subject: Suppress MinGW warnings --- meson/suppressions/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meson/suppressions') diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 541d533..ffc6595 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -96,6 +96,14 @@ if is_variable('cpp') '-Wno-inline', '-Wno-padded', ] + + if host_machine.system() == 'windows' + cpp_warnings += [ + '-Wno-cast-function-type', + '-Wno-suggest-attribute=format', + ] + endif + elif cpp.get_id() == 'msvc' cpp_warnings += [ '/wd4061', # enumerator in switch is not explicitly handled -- cgit v1.2.1