From cf5cb3441c27102cdebe91d5be25384877758293 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Mar 2022 17:31:48 -0400 Subject: Suppress warnings in MinGW --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 6eb99a3..b465ca1 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,12 @@ if get_option('strict') '-Wno-switch-enum', '-Wno-unsuffixed-float-constants', ] + + if host_machine.system() == 'windows' + c_warnings += [ + '-Wno-suggest-attribute=format', + ] + endif elif cc.get_id() == 'msvc' c_warnings += [ '/wd4028', # formal parameter different from declaration -- cgit v1.2.1