From 65e718da3a8154560b9451c273ce94eb195fa71a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Mar 2022 21:23:09 -0400 Subject: Suppress MinGW warnings --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index 0ac70be..3e167be 100644 --- a/meson.build +++ b/meson.build @@ -68,6 +68,13 @@ if get_option('strict') '-Wno-unused-parameter', '-Wno-vla', ] + + if host_machine.system() == 'windows' + c_warnings += [ + '-Wno-bad-function-cast', + ] + endif + elif cc.get_id() == 'msvc' c_warnings += [ '/wd4061', # enumerator in switch is not explicitly handled -- cgit v1.2.1