From 34473d703f04b73f02d4c895ebb467a96fc27cae Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 11 Jun 2019 11:40:13 +0100 Subject: [PATCH] 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 --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 551900282..ce332db56 100644 --- a/meson.build +++ b/meson.build @@ -60,6 +60,8 @@ global_args_maybe = [ '-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