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>
This commit is contained in:
Daniel Stone 2019-06-11 11:40:13 +01:00
parent 5898cd32c5
commit 34473d703f
1 changed files with 2 additions and 0 deletions

View File

@ -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