[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 12 12:49:17 UTC 2020


 meson.build |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 11009d1b64387ad7bec9e669039fc41a0411c918
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Mar 12 03:44:45 2020 +0000

    build: Use warning_level option for Meson
    
    warning_level 2 setting for Meson add the same "-Wall -Wextra"
    options to GCC compiler.
    This removes a warning using Meson.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>

diff --git a/meson.build b/meson.build
index 11e2765..3123fb1 100644
--- a/meson.build
+++ b/meson.build
@@ -2,8 +2,9 @@
 # project definition
 #
 project('spice-common', 'c',
-         meson_version : '>= 0.48.0',
-         license : 'LGPLv2.1')
+        meson_version : '>= 0.48.0',
+        license : 'LGPLv2.1',
+        default_options : ['warning_level=2'])
 
 if not meson.is_subproject()
   warning('This project is only intended to be used as a subproject!')
@@ -11,8 +12,6 @@ endif
 
 # some global vars
 spice_common_global_cflags = ['-DG_LOG_DOMAIN="Spice"',
-                              '-Wall',
-                              '-Wextra',
                               '-Werror',
                               '-Wno-unused-parameter']
 


More information about the Spice-commits mailing list