From 8b5e285e26ca126a5ae40211bda074fe460a0614 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 15 Aug 2021 19:06:10 +0100 Subject: meson: Use warning_level Instead of using `-Wall` and `-Wextra` as compiler flags, set `warning_level=2` as the default warning option. --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d78a5f2d6..2f618f75c 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('cairo', 'c', 'cpp', meson_version: '>= 0.54.0', version: run_command(find_program('version.py'), check: true).stdout().strip(), + default_options: ['warning_level=2'], ) # Keep in sync with configure.ac! @@ -41,8 +42,6 @@ cc = meson.get_compiler('c') cflags = [] if cc.get_id() != 'msvc' cflags += [ - '-Wall', - '-Wextra', '-Wmissing-declarations', '-Werror-implicit-function-declaration', '-Wpointer-arith', -- cgit v1.2.1