summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
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