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>
dev
Daniel Stone 5 years ago
parent 5898cd32c5
commit 34473d703f
  1. 2
      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

Loading…
Cancel
Save