build: Suppress 'pedantic' GCC warnings
GCC's 'pedantic' warnings warn about a bunch of things which are true of
ISO C but not the toolchains we care about (GCC, Clang). Suppress those
warnings to allow us to build with Meson's warning_level=3.
Signed-off-by: Daniel Stone <daniels@collabora.com>
diff --git a/meson.build b/meson.build
index 5519002..ce332db 100644
--- a/meson.build
+++ b/meson.build
@@ -60,6 +60,8 @@
'-Wno-unused-parameter',
'-Wno-shift-negative-value', # required due to Pixman
'-Wno-missing-field-initializers',
+ '-Wno-pedantic',
+ '-Wno-error=pedantic',
'-fvisibility=hidden',
]
foreach a : global_args_maybe