[gobject-introspection/ebassi/issue-319: 17/20] build: Use warning_level=2
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ebassi/issue-319: 17/20] build: Use warning_level=2
- Date: Wed, 23 Jun 2021 22:50:28 +0000 (UTC)
commit 637bd868ed85e031d1f51cebedbbb5df9b434629
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jun 2 11:38:01 2021 +0100
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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]