diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2020-03-12 03:44:45 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2020-03-12 12:48:39 +0000 |
commit | 11009d1b64387ad7bec9e669039fc41a0411c918 (patch) | |
tree | b4d3472672b9ae7a0066ffb111706ed285c8a129 | |
parent | a3ec7c173d304f4960e6e21f822528dd26b6ec9a (diff) |
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@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
-rw-r--r-- | meson.build | 7 |
1 files changed, 3 insertions, 4 deletions
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'] |