[gobject-introspection/ebassi/issue-319: 2/2] build: Use warning_level=2
- From: Emmanuele Bassi <ebassi src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gobject-introspection/ebassi/issue-319: 2/2] build: Use warning_level=2
 
- Date: Wed,  2 Jun 2021 10:39:46 +0000 (UTC)
 
commit 203250e7cf7af264ad2c457bf4603191333aeb06
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 4460e40c..431715f8 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project('gobject-introspection', 'c',
   version: '1.68.1',
   meson_version: '>= 0.50.1',
   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]