From 8a4db08c5cbcf6144c4c3c5fd8086a2891f62c2f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 2 Jun 2021 11:38:01 +0100 Subject: build: Use warning_level=2 Drop explicit `-Wall` and `-Wextra` from the compiler flags. Meson adds `-Wall` with `warning_level=1`, and `-Wextra` with `warning_level=2`. Fixes: #319 --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 6e6f556e..691863a7 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project('gobject-introspection', 'c', version: '1.69.0', meson_version: '>= 0.55.3', default_options: [ - 'warning_level=1', + 'warning_level=2', 'buildtype=debugoptimized', ], ) @@ -28,12 +28,10 @@ cc = meson.get_compiler('c') project_c_args = [] if cc.get_id() != 'msvc' project_c_args += [ - '-Wall', '-Warray-bounds', '-Wcast-align', '-Wdeclaration-after-statement', '-Wduplicated-branches', - '-Wextra', '-Wformat=2', '-Wformat-nonliteral', '-Wformat-security', -- cgit v1.2.1